This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Mixin.create({ | |
activate() { | |
this._super(...arguments); | |
var cssClass, root; | |
cssClass = this.toCssClass(); | |
root = this.root(); | |
if (cssClass !== 'application') { | |
root.addClass(cssClass); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
classNames: ['field'], | |
classNameBindings: ['is_error:error'], | |
model: null, // Model object being passed in | |
property: null, // The specific property on the model to look for | |
submitted: false, | |
show_error: true, |