mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
committed by
Andrew Joslin
parent
ca66444067
commit
4831f48954
2
js/angular/directive/navView.js
vendored
2
js/angular/directive/navView.js
vendored
@@ -129,7 +129,7 @@ function( $ionicViewService, $state, $compile, $controller, $animate) {
|
||||
// to derive our own qualified view name, then hang our own details
|
||||
// off the DOM so child directives can find it.
|
||||
var parent = element.parent().inheritedData('$uiView');
|
||||
if (name.indexOf('@') < 0) name = name + '@' + (parent ? parent.state.name : '');
|
||||
if (name.indexOf('@') < 0) name = name + '@' + ((parent && parent.state) ? parent.state.name : '');
|
||||
var view = { name: name, state: null };
|
||||
element.data('$uiView', view);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user