docs(metadata): fix some minor typos

Closes #4157
This commit is contained in:
Gerd Jungbluth 2015-09-13 15:01:58 +02:00
parent d1dbc973c4
commit effbb54f3d
2 changed files with 7 additions and 8 deletions

View File

@ -9,7 +9,6 @@ import {CONST, CONST_EXPR, stringify, isBlank, isPresent} from "angular2/src/cor
* } * }
* ``` * ```
*/ */
@CONST() @CONST()
export class InjectMetadata { export class InjectMetadata {
constructor(public token) {} constructor(public token) {}
@ -34,7 +33,7 @@ export class OptionalMetadata {
} }
/** /**
* `DependencyMetadata is used by the framework to extend DI. * `DependencyMetadata` is used by the framework to extend DI.
* *
* Only metadata implementing `DependencyMetadata` are added to the list of dependency * Only metadata implementing `DependencyMetadata` are added to the list of dependency
* properties. * properties.

View File

@ -6,7 +6,7 @@ export {ViewEncapsulation} from 'angular2/src/core/render/api';
/** /**
* Declares the available HTML templates for an application. * Declares the available HTML templates for an application.
* *
* Each angular component requires a single `@Component` and at least one `@View` annotation. The * 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 * `@View` annotation specifies the HTML template to use, and lists the directives that are active
* within the template. * within the template.
* *
@ -37,26 +37,26 @@ export {ViewEncapsulation} from 'angular2/src/core/render/api';
@CONST() @CONST()
export class ViewMetadata { export class ViewMetadata {
/** /**
* Specifies a template URL for an angular component. * Specifies a template URL for an Angular component.
* *
* NOTE: either `templateUrl` or `template` should be used, but not both. * NOTE: either `templateUrl` or `template` should be used, but not both.
*/ */
templateUrl: string; templateUrl: string;
/** /**
* Specifies an inline template for an angular component. * Specifies an inline template for an Angular component.
* *
* NOTE: either `templateUrl` or `template` should be used, but not both. * NOTE: either `templateUrl` or `template` should be used, but not both.
*/ */
template: string; template: string;
/** /**
* Specifies stylesheet URLs for an angular component. * Specifies stylesheet URLs for an Angular component.
*/ */
styleUrls: string[]; styleUrls: string[];
/** /**
* Specifies an inline stylesheet for an angular component. * Specifies an inline stylesheet for an Angular component.
*/ */
styles: string[]; styles: string[];
@ -72,7 +72,7 @@ export class ViewMetadata {
* selector: 'my-component' * selector: 'my-component'
* }) * })
* @View({ * @View({
* directives: [For] * directives: [NgFor]
* template: ' * template: '
* <ul> * <ul>
* <li *ng-for="#item of items">{{item}}</li> * <li *ng-for="#item of items">{{item}}</li>