vendredi 30 octobre 2015

Ember 2.1.0 render partial if index page else another partial

In my templates/application.hbs I would like to be able to set a condition to check if it is my index page I render a navigation for it, else it would render another set of navigation for in-app pages. The same for my footer. What is the best way to check this? Also, whether a user is login or not doesn't matter.

My research has lead to outdated code or convention. I'm also completely new to Ember so any help would be very much appreciated.




Aucun commentaire:

Enregistrer un commentaire