Skip to content

Commit

Permalink
fix(exposeAsideWhen): give content time to initialize
Browse files Browse the repository at this point in the history
Closes #2693.
  • Loading branch information
ajoslin committed Apr 14, 2015
1 parent 74a67f6 commit 255ccb7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/angular/directive/exposeAsideWhen.js
Expand Up @@ -39,8 +39,7 @@
* For a complete side menu example, see the
* {@link ionic.directive:ionSideMenus} documentation.
*/
IonicModule
.directive('exposeAsideWhen', ['$window', function($window) {
IonicModule.directive('exposeAsideWhen', ['$window', '$timeout', function($window, $timeout) {
return {
restrict: 'A',
require: '^ionSideMenus',
Expand All @@ -61,7 +60,7 @@ IonicModule
$scope.$apply(checkAsideExpose);
}, 300, false);

checkAsideExpose();
$scope.$evalAsync(checkAsideExpose);

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

Expand Down

0 comments on commit 255ccb7

Please sign in to comment.