SHARE
TWEET

Untitled

a guest Jun 15th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import Ember from 'ember';
  2. import {A} from '@ember/array';
  3.  
  4. export default Ember.Controller.extend({
  5.   appName: 'Ember Twiddle',
  6.   test: A([{foo: "bar"}]),
  7.   actions: {
  8.      click(){
  9.             this.test.addObject({foo : "bar"});
  10.             console.log(this.test);
  11.         }
  12.     }
  13. });
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