diff --git a/addon/index.js b/addon/index.js index 1571f0df..b4547a6f 100644 --- a/addon/index.js +++ b/addon/index.js @@ -88,7 +88,13 @@ import Validator from './validations/validator'; * }); * * export default Ember.Component.extend(Validations, { - * bar: null + * bar: null, + * barStatus: Ember.computed('bar',function(){ + * if(this.get('validations.attrs.bar.isValid')){ + * return 'The Bar is Open'; + * } + * return 'The Bar is Closed'; + * }) * }); * ``` *