阅读背景:

如何绑定到通过模板系统创建的元素

来源:互联网 

I'm using a template processor like handlebars to build my templates. Since recently I'm using angularjs to handle some JS stuff and would like to bind angular models to some of the elements I created. You have to imagine it like a list of ideas, where each of them has a button for up or downvoting. Clicking the buttons would trigger an ajax request to the server. I'm stuck at the point where I'm not sure how to name my models in this case or in general about the binding, as each idea has an unique id.I'm using a template processor like handlebars




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: