mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(ionNavButtons): remove elements from bar on scope destroy
This commit is contained in:
2
js/ext/angular/src/directive/ionicNavBar.js
vendored
2
js/ext/angular/src/directive/ionicNavBar.js
vendored
@@ -391,7 +391,7 @@ function($ionicViewService, $rootScope, $animate, $compile, $parse) {
|
||||
|
||||
//When our ion-nav-buttons container is destroyed,
|
||||
//destroy everything in the navbar
|
||||
$element.on('$destroy', function() {
|
||||
$scope.$on('$destroy', function() {
|
||||
$animate.leave(clone);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user