javascript - iron-router map without layoutTemplate -
i have iron-router layouttemplate
in configuration. requirement need include iframe element without rendering layouttemplate.
//my configuration router.configure({ layouttemplate: 'layout' }); //my routes router.map(function() { this.route('index', {path: '/'}); this.route('iframe', {path: '/iframe'}); //this particular path should render without layouttemplate. });
just add layout name in route map.
router.map(function() { this.route('iframe', {path: '/iframe',layouttemplate:'iframe'}); });
Comments
Post a Comment