如何默認顯示ionicPopover
,請勿點擊或任何其他事件。一旦頁面或視圖加載,顯示彈出?默認情況下如何顯示ionicPopover
cmr.controller('JoinMeeting', function($scope, $ionicPopover) {
$ionicPopover.fromTemplateUrl('joinMrTips.html', {
scope: $scope,
}).then(function(popover) {
$scope.popover = popover;
});
$scope.$on('$viewContentLoaded',function(){
$scope.popover.show();
});
})
是的,它的工作,非常感謝 – user3117414 2014-11-06 03:13:09
很高興它幫助@ user3117414。請接受我的答覆作爲答案。 – 2014-11-06 03:38:20
悲哀:未捕獲錯誤:[jqLite:nosel] jqLite不支持通過選擇器查找元素!請參閱:http://docs.angularjs.org/api/angular.element – 2015-04-22 10:17:11