I need to assign a static data- attribute to an Ember.View, how do I set that in the View object instead of in the {{view }}
tag.
App.MessagesFormView = Ember.View.extend({
tagName: 'div',
classNames: ['modal', 'fade'],
didInsertElement: function() {
this.$().modal('show')
},
willDestroyElement: function() {
this.$().modal('hide')
},
})