Assertion Fails while Rendering Multiple EmberJS Views

前端 未结 1 675
抹茶落季
抹茶落季 2021-01-20 14:36

I am using the view helper multiple times, in order to render the same template but with different parameters every time, mostly booleans acting as option flags

相关标签:
1条回答
  • 2021-01-20 15:20

    You are overriding the init() method of Ember.View and not calling this._super(). This causes the view to not initialize properly resulting in your view elements missing id attributes (e.g. id="ember224").

    Below is a link to your original JSBin with the addition of MyCustomView.init() calling this._super(). You will find the view elements now have id attributes.

    http://jsbin.com/UHOh/11/edit?html,js,output

    0 讨论(0)
提交回复
热议问题