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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -