Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  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. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement