Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Controller from '@ember/controller';
- // import { action } from '@ember-decorators/object';
- // decorators and class properties are not supported by twiddle
- export default class extends Controller {
- // appName = 'Ember Twiddle';
- constructor() {
- super(...arguments);
- this.appName = 'Ember Twiddle';
- this.classProperty = () => {
- console.log('classProperty', this.appName);
- }
- }
- // classProperty = () => {
- // console.log('classProperty', this.appName);
- // }
- func() {
- console.log('func', this.appName);
- }
- // @action
- // decorated() {
- // console.log('decorated', this.appName);
- // }
- // actions = {
- // traditionalAction() {
- // console.log('traditionalAction', this.appName);
- // }
- // }
- }
Add Comment
Please, Sign In to add comment