Guest User

Untitled

a guest
Jan 16th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. import Ember from 'ember';
  2.  
  3. export default Ember.Component.extend({
  4. selected: [],
  5. /* setupConfig: Ember.on('init', function () {
  6. this._super(...arguments);
  7. console.log('before', this.get('selected'));
  8. this.resetSelected();
  9. console.log('after', this.get('selected'));
  10. }),*/
  11.  
  12. init() {
  13. this._super(...arguments);
  14. console.log('before', this.get('selected'));
  15. this.resetSelected();
  16. console.log('after', this.get('selected'));
  17. },
  18. resetSelected() {
  19. this.set('selected', []);
  20. }
  21. });
Add Comment
Please, Sign In to add comment