diff --git a/docs/public-docs-package/index.js b/docs/public-docs-package/index.js index 484022d33f..070076c221 100644 --- a/docs/public-docs-package/index.js +++ b/docs/public-docs-package/index.js @@ -5,15 +5,15 @@ module.exports = new Package('angular-public', [basePackage]) .config(function(readTypeScriptModules) { readTypeScriptModules.sourceFiles = [ - 'angular2/annotations.js', + 'angular2/annotations.ts', 'angular2/change_detection.ts', - 'angular2/core.js', + 'angular2/core.ts', 'angular2/di.ts', - 'angular2/directives.js', - 'angular2/forms.js', + 'angular2/directives.ts', + 'angular2/forms.ts', 'angular2/router.js', - 'angular2/test.js', - 'angular2/pipes.js' + 'angular2/test.ts', + 'angular2/pipes.ts' ]; readTypeScriptModules.hidePrivateMembers = true; }) @@ -25,4 +25,4 @@ module.exports = new Package('angular-public', [basePackage]) // Configure file writing .config(function(writeFilesProcessor) { writeFilesProcessor.outputFolder = 'dist/public_docs'; -}); \ No newline at end of file +}); diff --git a/modules/angular2/annotations.ts b/modules/angular2/annotations.ts index 16519190da..b95aa883ce 100644 --- a/modules/angular2/annotations.ts +++ b/modules/angular2/annotations.ts @@ -5,8 +5,8 @@ * * Annotations provide the additional information that Angular requires in order to run your * application. This module - * contains {@link Component}, {@link Directive}, and {@link View} annotations, as well as {@link - * Parent} and {@link Ancestor} annotations that are + * contains {@link Component}, {@link Directive}, and {@link View} annotations, as well as + * {@link Parent} and {@link Ancestor} annotations that are * used by Angular to resolve dependencies. * */ diff --git a/modules/angular2/src/core/annotations_impl/annotations.ts b/modules/angular2/src/core/annotations_impl/annotations.ts index 7e152cd67c..225e81d17a 100644 --- a/modules/angular2/src/core/annotations_impl/annotations.ts +++ b/modules/angular2/src/core/annotations_impl/annotations.ts @@ -69,8 +69,8 @@ import {DEFAULT} from 'angular2/change_detection'; * * To inject element-specific special objects, declare the constructor parameter as: * - `element: ElementRef` to obtain a reference to logical element in the view. - * - `viewContainer: ViewContainerRef` to control child template instantiation, for {@link - * Directive} directives only + * - `viewContainer: ViewContainerRef` to control child template instantiation, for + * {@link Directive} directives only * - `bindingPropagation: BindingPropagation` to control change detection in a more granular way. * * ## Example @@ -514,7 +514,7 @@ export class Directive extends Injectable { * For example, we could write a binding that updates the directive on structural changes, rather * than on reference changes, as normally occurs in change detection. * - * See {@link Pipe} and {@link keyValDiff} documentation for more details. + * See {@link Pipe} and {@link pipes/keyValDiff} documentation for more details. * * ``` * @Directive({ @@ -705,7 +705,7 @@ export class Directive extends Injectable { /** * Specifies a set of lifecycle hostListeners in which the directive participates. * - * See {@link onChange}, {@link onDestroy}, {@link onAllChangesDone} for details. + * See {@link annotations/onChange}, {@link annotations/onDestroy}, {@link annotations/onAllChangesDone} for details. */ lifecycle: List; @@ -787,8 +787,8 @@ export class Directive extends Injectable { * When a component is instantiated, Angular * - creates a shadow DOM for the component. * - loads the selected template into the shadow DOM. - * - creates a child {@link Injector} which is configured with the `appInjector` for the {@link - * Component}. + * - creates a child {@link Injector} which is configured with the `appInjector` for the + * {@link Component}. * * All template expressions and statements are then evaluated against the component instance. * diff --git a/modules/angular2/src/core/annotations_impl/view.ts b/modules/angular2/src/core/annotations_impl/view.ts index c2a005d9e3..d6f271589d 100644 --- a/modules/angular2/src/core/annotations_impl/view.ts +++ b/modules/angular2/src/core/annotations_impl/view.ts @@ -4,13 +4,11 @@ import {ABSTRACT, CONST, Type} from 'angular2/src/facade/lang'; * Declares the available HTML templates for an application. * * Each angular component requires a single `@Component` and at least one `@View` annotation. The - * @View - * annotation specifies the HTML template to use, and lists the directives that are active within - * the template. + * `@View` annotation specifies the HTML template to use, and lists the directives that are active + * within the template. * * When a component is instantiated, the template is loaded into the component's shadow root, and - * the - * expressions and statements in the template are evaluated against the component. + * the expressions and statements in the template are evaluated against the component. * * For details on the `@Component` annotation, see {@link Component}. * diff --git a/modules/angular2/src/di/injector.ts b/modules/angular2/src/di/injector.ts index e59b4c8a82..70ab6600db 100644 --- a/modules/angular2/src/di/injector.ts +++ b/modules/angular2/src/di/injector.ts @@ -115,8 +115,8 @@ export class Injector { * Creates an injector from previously resolved bindings. This bypasses resolution and flattening. * This API is the recommended way to construct injectors in performance-sensitive parts. * - * @param `bindings` A sparse list of {@link ResolvedBinding}s. See `resolve` for the {@link - *Injector}. + * @param `bindings` A sparse list of {@link ResolvedBinding}s. See `resolve` for the + * {@link Injector}. * @param `defaultBindings` Setting to true will auto-create bindings. */ static fromResolvedBindings(bindings: List, @@ -125,8 +125,8 @@ export class Injector { } /** - * @param `bindings` A sparse list of {@link ResolvedBinding}s. See `resolve` for the {@link - * Injector}. + * @param `bindings` A sparse list of {@link ResolvedBinding}s. See `resolve` for the + * {@link Injector}. * @param `parent` Parent Injector or `null` if root Injector. * @param `defaultBindings` Setting to true will auto-create bindings. (Only use with root * injector.) diff --git a/modules/angular2/src/forms/directives/default_value_accessor.ts b/modules/angular2/src/forms/directives/default_value_accessor.ts index 36717fc476..7d9476d8d3 100644 --- a/modules/angular2/src/forms/directives/default_value_accessor.ts +++ b/modules/angular2/src/forms/directives/default_value_accessor.ts @@ -4,8 +4,8 @@ import {ControlDirective} from './control_directive'; import {ControlValueAccessor} from './control_value_accessor'; /** - * The default accessor for writing a value and listening to changes that is used by a {@link - * Control} directive. + * The default accessor for writing a value and listening to changes that is used by a + * {@link Control} directive. * * This is the default strategy that Angular uses when no other accessor is applied. * @@ -38,4 +38,4 @@ export class DefaultValueAccessor implements ControlValueAccessor { } registerOnChange(fn) { this.onChange = fn; } -} \ No newline at end of file +} diff --git a/modules/angular2/src/forms/directives/select_control_value_accessor.ts b/modules/angular2/src/forms/directives/select_control_value_accessor.ts index 069354870c..99d845443a 100644 --- a/modules/angular2/src/forms/directives/select_control_value_accessor.ts +++ b/modules/angular2/src/forms/directives/select_control_value_accessor.ts @@ -4,8 +4,8 @@ import {ControlDirective} from './control_directive'; import {ControlValueAccessor} from './control_value_accessor'; /** - * The accessor for writing a value and listening to changes that is used by a {@link - * Control} directive. + * The accessor for writing a value and listening to changes that is used by a + * {@link Control} directive. * * This is the default strategy that Angular uses when no other accessor is applied. * @@ -38,4 +38,4 @@ export class SelectControlValueAccessor implements ControlValueAccessor { } registerOnChange(fn) { this.onChange = fn; } -} \ No newline at end of file +}