fix(exposeAsideWhen): give content time to initialize

Closes #2693.
This commit is contained in:
Andrew
2015-04-14 09:36:44 -06:00
parent 74a67f6746
commit 255ccb7aec

View File

@@ -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',
@@ -61,7 +60,7 @@ IonicModule
$scope.$apply(checkAsideExpose);
}, 300, false);
checkAsideExpose();
$scope.$evalAsync(checkAsideExpose);
ionic.on('resize', onResize, $window);