I'm creating a mixin to validate the components with texFields it looks like this, I'm using < Code> Ember.defineProperty
App.ValidationMixin = Ember.Mixin.create classNameBindings: ['isInvalid'] Input: Code> To create a CP immediately with a dynamic dependent key ( E) - & gt; @ _super.apply, Logic Setup: Amber.On 'didInsertElement', - & gt; As long as verification = @get ('validation') = l = @autocompleteElement () # is getting this compared to #dynamic property changes when it is starting, @get ('isInvalid') el.addClass' It was rather to use prop to add this - the indigenous' other el.removeClass' is - invalid 'verification Mixin: Ember.on' didInsertElement ', - & gt; Until verification = @get ('verification') return dynamicProperty = # logic dynamic property Ember.defineProperty to determine this 'isInvalid', Ember.computed dynamicProperty, 'validator.isSubmitted' - & gt; # Verification logic
is the problem, I have to manually check for this.get ('isInvalid')
instead the function of the function is being executed When a
Amber probably thinks that the property 'isInvalid' is not used anywhere and hence It does not update that I think that 'didInsertElement' is called after the classNameBindings property ... Try to output if this is the case Yonki it 'isInvalid' property template to check should be updated.
No comments:
Post a Comment