fix(navViewController): create navBarCtrl.title

This commit is contained in:
Adam Bradley
2014-11-13 14:30:57 -06:00
parent 9e5caf5983
commit ed8bd94fc6

View File

@@ -104,9 +104,9 @@ function($scope, $element, $attrs, $ionicNavBarDelegate, $ionicHistory, $ionicVi
};
self.showBar = function(val) {
self.title = function(val) {
var associatedNavBarCtrl = getAssociatedNavBarCtrl();
associatedNavBarCtrl && associatedNavBarCtrl.showBar(val);
associatedNavBarCtrl && associatedNavBarCtrl.title(val);
};
@@ -116,6 +116,12 @@ function($scope, $element, $attrs, $ionicNavBarDelegate, $ionicHistory, $ionicVi
};
self.showBar = function(val) {
var associatedNavBarCtrl = getAssociatedNavBarCtrl();
associatedNavBarCtrl && associatedNavBarCtrl.showBar(val);
};
self.isPrimary = function(val) {
if (arguments.length) {
isPrimary = val;