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 
> 
> 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 [1].
> For more options, visit https://groups.google.com/d/optout [2].

 

Links:
------
[1] https://groups.google.com/group/angular
[2] 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.

Reply via email to