In the Angular 2 previews released so far, the syntax of the markup has been modified from
ng- prefixes to square parentheses and square brackets.
Whereas before one would have:
<input ng-model="userName" /> <button ng-click="btnClick()">Run</button>
The new syntax is:
<input [value]="userName" /> <button (click)="btnClick()">Run</button>
Does anybody know if this syntax is/will be mandatory, and without alternatives?
We currently have an application in which the HTML is generated through XSLT, and
( are not valid attributes – thereby being unable to generate Angular 2 JS syntax.