daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import Ember from 'ember';
  2. import { computed, get } from '@ember/object';
  3.  
  4. export default Ember.Component.extend({
  5.  
  6.   init() {
  7.     this._super();
  8.     console.log('child init');
  9.   },
  10.  
  11.   isClaimable: computed('organization', function() {
  12.     console.log('computed isClaimable was triggered');
  13.     return get(this, 'organization.claimable');
  14.   }).readOnly(),
  15.  
  16.   didUpdateAttrs() {
  17.     console.log('child didUpdateAttrs');
  18.   },
  19.   didReceiveAttrs() {
  20.     console.log('child didReceiveAttrs');
  21.   },
  22.   willUpdate() {
  23.     console.log('child willUpdate');
  24.   },
  25.   willRender() {
  26.     console.log('child willRender');
  27.     // debugger;
  28.   },
  29.   didInsertElement() {
  30.     console.log('child didInsertElement');
  31.     // debugger;
  32.   },
  33.   didUpdate() {
  34.     console.log('child didUpdate');
  35.   },
  36.   didRender() {
  37.     console.log('child didRender');
  38.     console.log('child _________');
  39.   },
  40. });
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