How to show ionicPopover
by default, don't click or any other event. Once the page or the view loaded, show the popover?
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();
});
})
You were very close. According to the official documentation of IonicPopover, The syntax of popover.show() is as follows :
show($event) where The $event or target element which the popover should align itself next to
Hence, rewriting your code as follows will do the job :
$scope.$on('$viewContentLoaded',function(){
$scope.popover.show(".class-of-host-control-of-popup");
});
Complete Example, along with code --> here