<template ngFor #item [ngForOf]="items" #i="index"><li>...</li></template>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....
--
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 angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
<template ngFor #item [ngForOf]="items" #i="index"><li>...</li></template>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