hi everyone im newbie here can anyone help me i whant to launch a method when i leave popover
exmpl
in this page
when i leave the popover i whant to launch a method call filter with variable can anyone helpp me and thnx
hi everyone im newbie here can anyone help me i whant to launch a method when i leave popover
exmpl
in this page
call your method on popover on dismiss read docs for more info and clarification
thnx for the reply
but the problem how i call the method and it in another page
i found the solution
i need to subscribe the event in first page like this
page 1:
import { Events } from 'ionic-angular';
constructor(public events: Events) {
events.subscribe('user:login', () => {
this.loggedIn();
});
}
loggedIn() {
console.log("logged in");
}
page 2
import { Events } from 'ionic-angular';
constructor(public events: Events) {
}
logIn() {
events.publish('user:login');
}