mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(navViewController): create navBarCtrl.title
This commit is contained in:
10
js/angular/controller/navViewController.js
vendored
10
js/angular/controller/navViewController.js
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user