Learning Angular for .NET Developers
上QQ阅读APP看书,第一时间看更新

Property binding

Property binding is used to bind a component property to an HTML element property:

<div [hidden]="hidePubName>Packt Publishing</div> 

The preceding code snippet binds the hidePubName component property to the div property hidden. This is also a one-way binding where the data flows from a component property to a template.