خرید بک لینک

Vote count: 0

I found on this page a great example of https://github.com/emberjs/ember.js/issues/11043 how to inherits from a component. Here is the example: http://emberjs.jsbin.com/rwjblue/443/edit?html,css,js,output

I played a bit with and especially with actions and come to this question:

How can I set the context of the component?

Consider the following examples:

http://emberjs.jsbin.com/cofobanoca/edit?html,css,js,output

and a derivate of it

http://emberjs.jsbin.com/gipawemipe/1/edit?html,css,js,output

They are pretty much the same except that in the second link, the component is dynamically create inside an action.

My question is, why is {{this}} in the second example a "generated application controller" and not a "App.XBarComponent"?

asked 6 mins ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 15 ارديبهشت 1395 ساعت: 20:57

صفحه بندی