Guest User

Untitled

a guest
Jun 22nd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. import Controller from '@ember/controller';
  2. // import { action } from '@ember-decorators/object';
  3.  
  4. // decorators and class properties are not supported by twiddle
  5. export default class extends Controller {
  6. // appName = 'Ember Twiddle';
  7.  
  8. constructor() {
  9. super(...arguments);
  10.  
  11. this.appName = 'Ember Twiddle';
  12. this.classProperty = () => {
  13. console.log('classProperty', this.appName);
  14. }
  15. }
  16.  
  17. // classProperty = () => {
  18. // console.log('classProperty', this.appName);
  19. // }
  20.  
  21. func() {
  22. console.log('func', this.appName);
  23. }
  24.  
  25. // @action
  26. // decorated() {
  27. // console.log('decorated', this.appName);
  28. // }
  29.  
  30. // actions = {
  31. // traditionalAction() {
  32. // console.log('traditionalAction', this.appName);
  33. // }
  34. // }
  35. }
Add Comment
Please, Sign In to add comment