From b91983995325d6d3704fccec2fae65b4cc886347 Mon Sep 17 00:00:00 2001 From: Justin Noel Date: Thu, 29 May 2014 14:23:17 -0500 Subject: [PATCH] feature : allow dynamic ion-nav-view name allow the name attribute to be evaluated as an angularjs expression Signed-off-by: Justin Noel --- js/angular/directive/navView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/angular/directive/navView.js b/js/angular/directive/navView.js index bcc7f3f8c0e..91d3a18e26a 100644 --- a/js/angular/directive/navView.js +++ b/js/angular/directive/navView.js @@ -114,7 +114,7 @@ function( $ionicViewService, $state, $compile, $controller, $animate) { compile: function (element, attr, transclude) { return function(scope, element, attr, navViewCtrl) { var viewScope, viewLocals, - name = attr[directive.name] || attr.name || '', + name = scope.$eval(attr[directive.name]) || scope.$eval(attr.name) || '', onloadExp = attr.onload || '', initialView = transclude(scope);