I would like to set the tagName of an ember component based on data in the model like this:
App.TestComponent = Ember.Component.extend({
tagName: function(){return this.get('tag');}.property('tag')
});
This doesn't work though. The W3C specifies that you can't change the tagName of an element, so I can see why binding a variable to a static property would be problematic - just not sure how to accomplish this.
Any ideas?
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments