ember.js - EmberJS - replacing a partial -


so i'm doing quiz site in emberjs. have 3 partial templates correspond 3 questions.

in parent template have following:

{{partial question1}} 

which shows first out of 3 questions. after user answers, want replace with

 {{partial question2}} 

i can think of ways replace through jquery ideas in parent controller/question1's template?

thanks.

if have multiple questions, it's not right way partials.

it make more sense to:

1) create questioncontroller

2) create template bound controller , display question.

in runtime, change backend model of questioncontroller specific question display.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -