No, I mean:
<li template="ngFor #item of items; #i = index">...</li> as documented at https://angular.io/docs/ts/latest/api/common/NgFor-directive.html#syntax On 2016-04-07 11:00, Günter Zöchbauer wrote: >> <li template="ngFor #item of items"> > you mean ? > > * <template ngFor #item [ngForOf]="items" #i="index"><li>...</li></template> > > On Wednesday, April 6, 2016 at 2:09:10 PM UTC+2, Radek Holý wrote: > > For ngFor I prefer: > > <li template="ngFor #item of items"> > > and for bindings: > > <div data-bind-title="foo"> > > and > > <button data-on-click="onClick($event)"> > > It works in Angular 2.0.0-alpha.45. However, I'm not sure whether it *should* > (and will) work since I did not find it in the documentation.... > > On 2016-04-06 12:19, Günter Zöchbauer wrote: > 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 [1] > > 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 [2]. > For more options, visit https://groups.google.com/d/optout [3]. -- 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 [2]. For more options, visit https://groups.google.com/d/optout [3]. Links: ------ [1] https://angular.io/docs/ts/latest/api/common/NgFor-directive.html [2] https://groups.google.com/group/angular [3] https://groups.google.com/d/optout -- 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.
