Hi Sander, I want to do this for every element on the page. So I can not write directive for all. I want to do this using controller and scope.
jsfiddle is: http://jsfiddle.net/NC2Bk/ On 17 January 2014 12:54, Sander Elias <[email protected]> wrote: > Hi Pushpendra, > > You can do this adding your own directive that does nothing more then > adding the ngModel attribute with the name you want it to handle. > My guess is that this is a approx 10 lines of code. If you would have put > up an plunk or fiddle, I would have made it for you ;) > > Regards > Sander > > -- > 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 http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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 http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
