Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Ember from 'ember';
- export default Ember.Component.extend({
- // name: 'test',
- init() {
- this._super(...arguments);
- //this.name = 'new test';
- console.log('I am in init');
- },
- didUpdateAttrs() {
- this._super(...arguments);
- //this.name='test';
- console.log('I am in didUpdateAttrs');
- },
- didReceiveAttrs() {
- this._super(...arguments);
- console.log('I am in didReceiveAttrs');
- },
- actions: {
- changeName: function() {
- this.set('name', 'new test');
- }
- }
- });
Add Comment
Please, Sign In to add comment