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',
- init() {
- this._super(...arguments);
- this.set('items', []);
- },
- actions: {
- add(name) {
- this.get('items').pushObject(name);
- },
- clear() {
- this.set('items', []);
- }
- }
- });
Add Comment
Please, Sign In to add comment