Merge pull request #1163 from shilman/fix-1161

Fixes #1161 - Template.layout `pageName` should be reactive as route changes
This commit is contained in:
Sacha Greif 2015-10-13 10:38:38 +09:00
commit 33a9f02f06

View file

@ -22,7 +22,7 @@ Template.layout.onCreated(function (){
}
}
});
});
@ -65,7 +65,8 @@ Template.layout.helpers({
navLayout: function () {
return Settings.get('navLayout', 'top-nav');
},
pageName : function(){
pageName : function() {
FlowRouter.watchPathChange();
return FlowRouter.current().route.name;
},
extraCode: function() {