mardi 24 novembre 2015

Ember-notify giving error can't read property "Service" of undefined

I am using ember-notify ember-notify in my ember-cli project.

import {
  Component,
  inject
} from 'ember';
export default Component.extend({
  notify: inject.service('notify'),
  actions: {
    sayHello() {
      this.get('notify').info('Hello there!');
    }
  }
});

I just copied the same example code from documentation. But I am getting error 'cannot read property "service" of undefined' for line notify: inject.service('notify'), I've installed this addon and did a npm install as well.




Aucun commentaire:

Enregistrer un commentaire