[Angular 2] Template property syntax

This lesson covers using the [input] syntax to change an element property such as “hidden” or “content-editable”. Using properties eliminates the need for Angular 1’s old directives such as ng-show and ng-hide as you’re now able to directly access any property on your element.

See the pulll list for the properties: link
 
 
 
原文地址:https://www.cnblogs.com/Answer1215/p/5302544.html