From ed8bd94fc63fb7cc029be7ad6a50143c17d47b08 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Thu, 13 Nov 2014 14:30:57 -0600 Subject: [PATCH] fix(navViewController): create navBarCtrl.title --- js/angular/controller/navViewController.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/js/angular/controller/navViewController.js b/js/angular/controller/navViewController.js index 23fc5dac02..3367ec9335 100644 --- a/js/angular/controller/navViewController.js +++ b/js/angular/controller/navViewController.js @@ -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;