Popover on ng-init


#1

The documentation says you need to pass an $event to open the popover, and the examples point to ng-click. But if i want the popover to show on ng-init of the view, $event is undefined. How can I show the popover when the view loads?


#2

you can use this in the controller:

ionic.Platform.ready(function () {
// open it here
});


#3

No, you can’t. You need to pass an $event param to popover or else it doesn’t work.