我是ember js的新手。我想重复这个
http://discuss.emberjs.com/t/how-to-communicate-to-child-components/7772/7
{{#my-super-form as |parent|}}
{{some-child notify=parent}}
{{/my-super-form}}
我总是得到
未捕获的TypeError:this.get(...)。send不是函数
在
this.get('notify').send('somethingHappened');
为什么?..
我使用ember 1.12
我在哪里可以阅读 yield 中的params,例如
{{yield param1 param2 }}
答案 0 :(得分:0)
我在这里找到了所有答案
http://emberjs.com/blog/2015/02/07/ember-1-10-0-released.html
在我的 my-super-form.hbs 中需要使用
{{yield this}}