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

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -