How to add a specific sidebar to meteor route? -
for example have admin area , want display specific sidebar admin navigation
<body> {{#if adminroute}} {{> sidebaradminnav }} {{> yeld }} {{else}} {{> yeld }} {{/if} </body>
i guess looking called nested views. this answer gives best option have used far. no "angular ui-router" ideal, job. in layout:
{{#if layout.rendersidebar}} {{> sidebaradminnav }} {{/if}} {{> yield }}
and in each (sadly) of admin routes:
data: function() { return { layout: {rendersidebar: true}, ... }; }
Comments
Post a Comment