Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4838

Programatically create component

$
0
0

@tookien wrote:

I want to add a component programatically and append that after a target element.

something like this:

let comp = SomeComponent.create({
item: item
});

comp.insertAfter('#someExistingComponentId');

but this is not working.

Ember.$(comp.element).insertAfter('#someExistingComponentId');

neither is that

any ideas? thanks

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4838