Skip to content

Commit 3ab8a0c

Browse files
mheveryalexeagle
authored andcommitted
chore(docs): adding docs to core.ts and annotations.ts
1 parent 12a427e commit 3ab8a0c

22 files changed

+870
-58
lines changed

modules/angular2/angular2.api.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ export {Injectable, Visibility} from './src/di/annotations_impl';
2222
export {BaseQueryList} from './src/core/compiler/base_query_list';
2323
export {AppProtoView, AppView, AppViewContainer} from './src/core/compiler/view';
2424
export * from './src/change_detection/parser/ast';
25-
export {AppViewManager} from './src/core/compiler/view_manager';

modules/angular2/angular2.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* The `angular2` is the single place to import all of the individual types.
3+
*/
4+
export * from 'angular2/annotations';
5+
export * from 'angular2/core';
6+
7+
// TO BE CLEANED UP.
18
export {
29
DehydratedException,
310
ExpressionChangedAfterItHasBeenChecked,
@@ -60,8 +67,6 @@ export {
6067
DependencyProvider
6168
} from './di';
6269

63-
export * from './core';
64-
export * from './annotations';
6570
export * from './directives';
6671

6772
export {
@@ -89,6 +94,5 @@ export {
8994
} from './forms';
9095

9196
export * from './http';
92-
export {Observable, EventEmitter} from 'angular2/src/facade/async';
9397
export * from 'angular2/src/render/api';
9498
export {DomRenderer, DOCUMENT_TOKEN} from 'angular2/src/render/dom/dom_renderer';

modules/angular2/annotations.ts

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,50 @@
1010
* used by Angular to resolve dependencies.
1111
*
1212
*/
13-
export * from './src/core/annotations/annotations';
14-
export * from './src/core/annotations/decorators';
13+
14+
export {
15+
ComponentAnnotation,
16+
ComponentArgs,
17+
DirectiveAnnotation,
18+
LifecycleEvent,
19+
onDestroy,
20+
onChange,
21+
onCheck,
22+
onInit,
23+
onAllChangesDone
24+
} from './src/core/annotations/annotations';
25+
26+
export {ViewAnnotation, ViewArgs} from 'angular2/src/core/annotations/view';
27+
export {QueryAnnotation, AttributeAnnotation} from 'angular2/src/core/annotations/di';
28+
29+
export {
30+
OnAllChangesDone,
31+
OnChange,
32+
OnDestroy,
33+
OnInit,
34+
OnCheck
35+
} from 'angular2/src/core/compiler/interfaces';
36+
37+
38+
export {
39+
Class,
40+
ClassDefinition,
41+
ParameterDecorator,
42+
TypeDecorator
43+
} from 'angular2/src/util/decorators';
44+
45+
export {
46+
Attribute,
47+
AttributeFactory,
48+
Component,
49+
ComponentDecorator,
50+
ComponentFactory,
51+
Directive,
52+
DirectiveDecorator,
53+
DirectiveFactory,
54+
View,
55+
ViewDecorator,
56+
ViewFactory,
57+
Query,
58+
QueryFactory
59+
} from 'angular2/src/core/annotations/decorators';

modules/angular2/core.ts

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,35 @@
44
* @description
55
* Define angular core API here.
66
*/
7-
export * from './src/core/annotations/view';
8-
export * from './src/core/application';
9-
export * from './src/core/application_tokens';
10-
export * from './src/core/annotations/di';
7+
export {bootstrap, ApplicationRef} from 'angular2/src/core/application';
8+
export {appComponentTypeToken} from 'angular2/src/core/application_tokens';
119

12-
export * from './src/core/compiler/compiler';
13-
export * from './src/core/compiler/interfaces';
14-
export * from './src/core/compiler/query_list';
15-
export * from './src/core/compiler/directive_resolver';
16-
export * from './src/core/compiler/dynamic_component_loader';
17-
export {ViewRef, ProtoViewRef} from './src/core/compiler/view_ref';
18-
export {ViewContainerRef} from './src/core/compiler/view_container_ref';
19-
export {ElementRef} from './src/core/compiler/element_ref';
20-
export {EventEmitter} from './src/facade/async';
2110

22-
export {NgZone} from './src/core/zone/ng_zone';
11+
// Compiler Related Dependencies.
12+
export {AppRootUrl} from 'angular2/src/services/app_root_url';
13+
export {UrlResolver} from 'angular2/src/services/url_resolver';
14+
export {ComponentUrlMapper} from 'angular2/src/core/compiler/component_url_mapper';
15+
export {DirectiveResolver} from 'angular2/src/core/compiler/directive_resolver';
16+
export {Compiler} from 'angular2/src/core/compiler/compiler';
17+
18+
export {AppViewManager} from 'angular2/src/core/compiler/view_manager';
19+
export {QueryList} from 'angular2/src/core/compiler/query_list';
20+
export {ElementRef} from 'angular2/src/core/compiler/element_ref';
21+
export {RenderElementRef} from 'angular2/src/render/api';
22+
export {ViewRef, ProtoViewRef} from 'angular2/src/core/compiler/view_ref';
23+
export {ViewContainerRef} from 'angular2/src/core/compiler/view_container_ref';
24+
25+
export {
26+
DynamicComponentLoader,
27+
ComponentRef
28+
} from 'angular2/src/core/compiler/dynamic_component_loader';
29+
30+
export {NgZone} from 'angular2/src/core/zone/ng_zone';
31+
export {Observable, EventEmitter} from 'angular2/src/facade/async';
32+
33+
34+
// TODO(misko): remove exporting of these.
35+
// This should not be exported once we have: https://github.com/angular/angular/issues/2883
36+
export {ProtoViewFactory} from 'angular2/src/core/compiler/proto_view_factory';
37+
export {RenderCompiler} from 'angular2/src/render/api';
38+
export {CompilerCache} from 'angular2/src/core/compiler/compiler';

modules/angular2/src/core/annotations/annotations.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
export {
77
Component as ComponentAnnotation,
88
Directive as DirectiveAnnotation,
9-
ComponentArgs,
10-
DirectiveArgs,
9+
LifecycleEvent,
1110
onDestroy,
1211
onChange,
1312
onCheck,

0 commit comments

Comments
 (0)