Hi Vova,

Don't use the DOM as data, let it follow your data. Don't use $compile 
unless there is absolutely no other way. It will bog down your application 
to a crawl soon otherwise.
Here is a plunk showing you how you can do this 
<http://plnkr.co/edit/TgpkYJ?p=preview>. I updated your code to follow 
current best practices.

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to