How to use the ember-notify.Container function in ember-notify

To help you get started, we’ve selected a few ember-notify examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github adopted-ember-addons / ember-notify / qunit.js View on Github external
Ember.run(function() {
    var container = Notify.Container.create({});
    parent = Ember.ContainerView.create({
      childViews: [container]
    });
    parent.appendTo(App.rootElement);
    view = container.info('Hello from another container');
  });
  Ember.run(function() {
github adopted-ember-addons / ember-notify / app-addon / components / ember-notify.js View on Github external
notifyView: function() {
    var notify = this.get('notify');
    Ember.assert("You must provide a notify property that is an instance of NotifyContainer to {{ember-notify}}", Notify.Container.detectInstance(notify));
    return notify;
  }.property('notify')
});