@@ -295,7 +295,6 @@ angular.module('ionic.ui.viewState', ['ionic.service.view', 'ionic.service.gestu
295
295
} ;
296
296
} ] )
297
297
298
-
299
298
. directive ( 'ionNavView' , [ '$ionicViewService' , '$state' , '$compile' , '$controller' , '$animate' ,
300
299
function ( $ionicViewService , $state , $compile , $controller , $animate ) {
301
300
// IONIC's fork of Angular UI Router, v0.2.7
@@ -307,9 +306,13 @@ angular.module('ionic.ui.viewState', ['ionic.service.view', 'ionic.service.gestu
307
306
terminal : true ,
308
307
priority : 2000 ,
309
308
transclude : true ,
310
- controller : function ( ) { } , //noop controller so this can be required
309
+ controller : [ '$scope' , function ( $scope ) {
310
+ this . setNextAnimation = function ( anim ) {
311
+ $scope . $nextAnimation = anim ;
312
+ } ;
313
+ } ] ,
311
314
compile : function ( element , attr , transclude ) {
312
- return function ( scope , element , attr ) {
315
+ return function ( scope , element , attr , navViewCtrl ) {
313
316
var viewScope , viewLocals ,
314
317
name = attr [ directive . name ] || attr . name || '' ,
315
318
onloadExp = attr . onload || '' ,
@@ -351,7 +354,6 @@ angular.module('ionic.ui.viewState', ['ionic.service.view', 'ionic.service.gestu
351
354
if ( locals === viewLocals ) return ; // nothing to do
352
355
var renderer = $ionicViewService . getRenderer ( element , attr , scope ) ;
353
356
354
-
355
357
// Destroy previous view scope
356
358
if ( viewScope ) {
357
359
viewScope . $destroy ( ) ;
0 commit comments