mardi 23 juin 2015

insert component without calling handlebars helper

I want to insert a component into controller template without using the handlebars helper (component "component-name"... or component-name).

In other words:

App.IndexController = Ember.Controller.extend({
  actions: {
     insertComponent: function() {
       var component = this.container.lookup("component:my-inserted", { singleton: false });
       component.set("layoutName", "components/my-inserted");

       // to be like handlebars-inserted component, what do i do here?
     }
  }
});

You can use test with this: http://ift.tt/1GxOI82




Aucun commentaire:

Enregistrer un commentaire