You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 4, 2017. It is now read-only.
Angular creates, updates, and destroys components as the user moves through the application.
184
-
The developer can take action at each moment in this lifecycle through optional [lifecycle hooks](lifecycle-hooks.html).
187
+
The developer can take action at each moment in this lifecycle through optional [lifecycle hooks](lifecycle-hooks.html), like `ngOnInit()` declared above.
185
188
.l-sub-section
186
189
:marked
187
190
We may wonder who is calling the component's constructor? Who provides the service parameter?
@@ -391,14 +394,8 @@ figure
391
394
* [`*ngFor`](displaying-data.html#ngFor) tells Angular to stamp out one `<li>` per hero in the `heroes` list.
392
395
* [`*ngIf`](displaying-data.html#ngIf) includes the `HeroDetail` component only if a selected hero exists.
393
396
394
-
.l-sub-section
395
-
:marked
396
-
In Dart, **the only value that is true is the boolean value `true`**; all
397
-
other values are false. JavaScript and TypeScript, in contrast, treat values
398
-
such as 1 and most non-null objects as true. For this reason, the JavaScript
399
-
and TypeScript versions of this app can use just `selectedHero` as the value
400
-
of the `*ngIf` expression. The Dart version must use a boolean operator such
401
-
as `!=` instead.
397
+
blockdart-bool
398
+
//- N/A
402
399
403
400
:marked
404
401
**Attribute** directives alter the appearance or behavior of an existing element.
0 commit comments