docs(compiler): document the $any type cast function (#20968)

Closes #20966

PR Close #20968
This commit is contained in:
Chuck Jazdzewski
2017-12-12 12:51:38 -08:00
committed by Alex Eagle
parent c5c6d84fe6
commit 2d44a2ab0d
2 changed files with 46 additions and 0 deletions

View File

@ -821,6 +821,29 @@ The null hero's name is {{nullHero && nullHero.name}}
<a class="to-toc" href="#toc">top</a>
<!-- non-null assertion operator -->
<hr><h2 id="any-type-cast-function">$any type cast function <i>$any( )</i>.</h2>
<div>
<!-- #docregion any-type-cast-function-1 -->
<!-- Accessing an undeclared member -->
<div>
The hero's marker is {{$any(hero).marker}}
</div>
<!-- #enddocregion any-type-cast-function-1 -->
</div>
<div>
<!-- #docregion any-type-cast-function-2 -->
<!-- Accessing an undeclared member -->
<div>
Undeclared members is {{$any(this).member}}
</div>
<!-- #enddocregion any-type-cast-function-2 -->
</div>
<a class="to-toc" href="#toc">top</a>
<!-- TODO: discuss this in the Style binding section -->
<!-- enums in bindings -->
<hr><h2 id="enums">Enums in binding</h2>