Same template, different content?. AngularJS

Hi,

Another angular.js question.

I have a question form, which is made up by 10 questions. Template is called “question.html”. One question per page and a “next question” button.

Instead of making 10 identical templates, with different content, could I have just the one template that i reload with the next question when user clicks “next question”? And if so, how do I do this?

You would the ui-router nested states.

Here is a decent tutorial.

1 Like

Thanks! Seem to be exactly what I was looking for.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.