Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import Ember from 'ember';
  2.  
  3. export default Ember.Component.extend({
  4. amIValid: Ember.computed('isValid', function() {
  5. console.log('hit from child');
  6. return Ember.get(this, 'isValid');
  7. }),
  8. actions: {
  9. toggleValidity: function () {
  10. console.log('hit from checkbox')
  11. Ember.set(this, 'isValid', !Ember.get(this, 'isValid'));
  12. }
  13. }
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement