You can use the long form
- <template ngFor #item [ngForOf]="items" #i="index"><li>...</li></template> See https://angular.io/docs/ts/latest/api/common/NgFor-directive.html but how is that related to HTML5 compliance? Such markup will be processed by Angular before it is added to the DOM anyway. The DOM won't ever see any of Angulars *, [], (), or {{}} On Wednesday, April 6, 2016 at 1:13:33 AM UTC+2, hani wrote: > > Is there a way not to use or use shorthands for angular2 attributes on > html elements? for example, instead of *ngFor use data-ngfor or something > like that? is there a way to do something like this? > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
