How to make Admob only display on specific page?


#1

HI guys, i’m new to Ionic framework.
i would like to know, how to make Admob only display on specific page/controller?
currently, i am using cordova-plugin-admobpro, and it display in all pages.

Thanks.


#2

i found the solution by using the following events in the controller.
$ionicView.beforeLeave
refer to Directive in module ionic
:grinning: