Skip to content

Commit effbb54

Browse files
committed
docs(metadata): fix some minor typos
Closes angular#4157
1 parent d1dbc97 commit effbb54

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

modules/angular2/src/core/di/metadata.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {CONST, CONST_EXPR, stringify, isBlank, isPresent} from "angular2/src/cor
99
* }
1010
* ```
1111
*/
12-
1312
@CONST()
1413
export class InjectMetadata {
1514
constructor(public token) {}
@@ -34,7 +33,7 @@ export class OptionalMetadata {
3433
}
3534

3635
/**
37-
* `DependencyMetadata is used by the framework to extend DI.
36+
* `DependencyMetadata` is used by the framework to extend DI.
3837
*
3938
* Only metadata implementing `DependencyMetadata` are added to the list of dependency
4039
* properties.

modules/angular2/src/core/metadata/view.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export {ViewEncapsulation} from 'angular2/src/core/render/api';
66
/**
77
* Declares the available HTML templates for an application.
88
*
9-
* Each angular component requires a single `@Component` and at least one `@View` annotation. The
9+
* Each Angular component requires a single `@Component` and at least one `@View` annotation. The
1010
* `@View` annotation specifies the HTML template to use, and lists the directives that are active
1111
* within the template.
1212
*
@@ -37,26 +37,26 @@ export {ViewEncapsulation} from 'angular2/src/core/render/api';
3737
@CONST()
3838
export class ViewMetadata {
3939
/**
40-
* Specifies a template URL for an angular component.
40+
* Specifies a template URL for an Angular component.
4141
*
4242
* NOTE: either `templateUrl` or `template` should be used, but not both.
4343
*/
4444
templateUrl: string;
4545

4646
/**
47-
* Specifies an inline template for an angular component.
47+
* Specifies an inline template for an Angular component.
4848
*
4949
* NOTE: either `templateUrl` or `template` should be used, but not both.
5050
*/
5151
template: string;
5252

5353
/**
54-
* Specifies stylesheet URLs for an angular component.
54+
* Specifies stylesheet URLs for an Angular component.
5555
*/
5656
styleUrls: string[];
5757

5858
/**
59-
* Specifies an inline stylesheet for an angular component.
59+
* Specifies an inline stylesheet for an Angular component.
6060
*/
6161
styles: string[];
6262

@@ -72,7 +72,7 @@ export class ViewMetadata {
7272
* selector: 'my-component'
7373
* })
7474
* @View({
75-
* directives: [For]
75+
* directives: [NgFor]
7676
* template: '
7777
* <ul>
7878
* <li *ng-for="#item of items">{{item}}</li>

0 commit comments

Comments
 (0)