Skip to content

Commit 255ccb7

Browse files
committed
fix(exposeAsideWhen): give content time to initialize
Closes #2693.
1 parent 74a67f6 commit 255ccb7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: js/angular/directive/exposeAsideWhen.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939
* For a complete side menu example, see the
4040
* {@link ionic.directive:ionSideMenus} documentation.
4141
*/
42-
IonicModule
43-
.directive('exposeAsideWhen', ['$window', function($window) {
42+
IonicModule.directive('exposeAsideWhen', ['$window', '$timeout', function($window, $timeout) {
4443
return {
4544
restrict: 'A',
4645
require: '^ionSideMenus',
@@ -61,7 +60,7 @@ IonicModule
6160
$scope.$apply(checkAsideExpose);
6261
}, 300, false);
6362

64-
checkAsideExpose();
63+
$scope.$evalAsync(checkAsideExpose);
6564

6665
ionic.on('resize', onResize, $window);
6766

0 commit comments

Comments
 (0)