Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Ember from 'ember';
- export default Ember.Component.extend({
- isCoco: false,
- index: 0,
- /* mouseEnter() {
- this.set('isCoco', true);
- return false;
- },
- mouseMove() {
- this.set('isCoco', true);
- },
- mouseLeave() {
- this.set('isCoco', false);
- return false;
- },*/
- didUpdateAttrs() {
- this._super(...arguments);
- console.debug('didUpdateAttrs', arguments[0]);
- },
- didReceiveAttrs() {
- this._super(...arguments);
- console.debug('didReceiveAttrs', arguments[0]);
- },
- willUpdate() {
- this._super(...arguments);
- console.debug('willUpdate', arguments[0]);
- },
- willRender() {
- this._super(...arguments);
- console.debug('willRender', arguments[0]);
- },
- actions: {
- changeAttr() {
- //this.incrementProperty('index');
- this.toggleProperty('isCoco');
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement