Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Ember from 'ember';
- export default Ember.Component.extend({
- selected: [],
- /* setupConfig: Ember.on('init', function () {
- this._super(...arguments);
- console.log('before', this.get('selected'));
- this.resetSelected();
- console.log('after', this.get('selected'));
- }),*/
- init() {
- this._super(...arguments);
- console.log('before', this.get('selected'));
- this.resetSelected();
- console.log('after', this.get('selected'));
- },
- resetSelected() {
- this.set('selected', []);
- }
- });
Add Comment
Please, Sign In to add comment