Angularjs: Questions with complex template

Asked

Viewed 183 times

1

I need to create a page where the template should vary as requested. For example, on the home page I have a space for contents in tabs and a fixed column (as shown below). Both tabs and column are independent.

However, for all other pages the template is different (there is no sidebar). How should I proceed in this case?

Exemplo do template inicial

  • 2

    Ola Danilo, I suggest you take a look at the UI-Router https://github.com/angular-ui/ui-router that allows Voce to have "nested views" (basically one template inside the other). With the Angularjs standard router Voce has only one /ng-view. With the ui-router it is possible to have multiple ui-view ("ng-view"). Give a read on the documentation.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.