Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 6e3039f

Browse files
committed
docs(glossary): update to alpha.52
closes #481
1 parent b2cae85 commit 6e3039f

File tree

1 file changed

+18
-23
lines changed

1 file changed

+18
-23
lines changed

public/docs/ts/latest/guide/glossary.jade

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
:marked
22
# Angular 2 Glossary
3-
#sg-tables.showcase.shadow-1
4-
header.showcase-header
5-
p.
6-
<i>The difference between the right word
7-
and the almost right word is the difference between
8-
lightning and a lightning bug.</i> - Mark Twain
9-
10-
:marked
3+
114
Angular 2 has a vocabulary of its own.
125
Most Angular 2 terms are everyday English words
136
with a specific meaning within the Angular system.
@@ -35,7 +28,7 @@
3528
other HTML elements, attributes, properties, and components. They are usually represented
3629
as HTML attributes, hence the name.
3730

38-
The `ng-class` directive for adding and removing CSS class names is a good example of
31+
The `ngClass` directive for adding and removing CSS class names is a good example of
3932
an Attribute Directive.
4033

4134
.l-main-section
@@ -112,7 +105,7 @@
112105
* [Attribute Binding](./template-syntax.html#attribute-binding)
113106
* [Class Binding](./template-syntax.html#class-binding)
114107
* [Style Binding](./template-syntax.html#style-binding)
115-
* [Two-way data binding with ng-model](./template-syntax.html#ng-model)
108+
* [Two-way data binding with ngModel](./template-syntax.html#ng-model)
116109

117110
Learn more about data binding in the
118111
[Template Syntax](./template-syntax.html#data-binding) chapter.
@@ -332,18 +325,20 @@
332325
managed by Angular as it creates, updates and destroys them.
333326

334327
Developers can tap into key moments in that lifecycle by implementing
335-
one or more of the "Lifecycle Hook" interfaces which are (in the order invoked):
336-
* `OnChanges` - called when [input](#input)/[output](#output) binding values change
337-
* `OnInit` - after the first `OnChanges`
338-
* `DoCheck` - developer's custom change detection
339-
* `AfterContentInit` - after component content initialized
340-
* `AfterContentChecked` - after every check of component content
341-
* `AfterViewInit` - after component's view(s) are initialized
342-
* `AfterViewChecked` - after every check of a component's view(s)
343-
* `OnDestroy` - just before the directive is destroyed.
344-
.alert.is-critical.
345-
These are the alpha names;
346-
we anticipate that they will be prefixed with <code>ng-</code> in the beta release.
328+
one or more of the "Lifecycle Hook" interfaces.
329+
330+
Each interface has a single hook method whose name is the interface name prefixed with `ng`.
331+
For example, the `OnInit` interface has a hook method names `ngOnInit`.
332+
333+
Angular calls these hook methods in the following order:
334+
* `ngOnChanges` - called when an [input](#input)/[output](#output) binding values change
335+
* `ngOnInit` - after the first `ngOnChanges`
336+
* `ngDoCheck` - developer's custom change detection
337+
* `ngAfterContentInit` - after component content initialized
338+
* `ngAfterContentChecked` - after every check of component content
339+
* `ngAfterViewInit` - after component's view(s) are initialized
340+
* `ngAfterViewChecked` - after every check of a component's view(s)
341+
* `ngOnDestroy` - just before the directive is destroyed.
347342

348343
.l-main-section
349344
<a id="M"></a>
@@ -418,7 +413,7 @@
418413
shape or re-shape HTML layout, typically by adding, removing, or manipulating
419414
elements and their children.
420415

421-
The `ng-if` "conditional element" directive and the `ng-for` "repeater" directive are
416+
The `ngIf` "conditional element" directive and the `ngFor` "repeater" directive are
422417
good examples in this category.
423418

424419
.l-main-section

0 commit comments

Comments
 (0)