docs(aio): document the non-null assertion operator

This commit is contained in:
Chuck Jazdzewski
2017-05-22 13:00:38 -07:00
committed by Alex Rickabaugh
parent 75a311f250
commit 74673545c0
2 changed files with 31 additions and 1 deletions

View File

@ -803,6 +803,15 @@ The null hero's name is {{nullHero && nullHero.name}}
<!-- #enddocregion safe-6 -->
</div>
<div>
<!-- #docregion non-null-assertion-1 -->
<!--No hero, no text -->
<div *ngIf="hero">
The hero's name is {{hero!.name}}
</div>
<!-- #enddocregion non-null-assertion-1 -->
</div>
<a class="to-toc" href="#toc">top</a>
<!-- TODO: discuss this in the Style binding section -->