SHARE
TWEET

Untitled

a guest May 23rd, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top