Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Ember from 'ember';
- export default Ember.Controller.extend({
- appName: 'Ember Twiddle',
- array: [],
- pushObj() {
- this.get('array').pushObject({name: 'name'});
- },
- popObj() {
- this.get('array').popObject();
- },
- push() {
- this.get('array').push({name: 'name'});
- },
- pop() {
- this.get('array').pop();
- }
- });
Add Comment
Please, Sign In to add comment