How to execute in first a function and in second canActivate()
I have this AuthGuard. In this code I want to create a condition. If my resetpasss is not null I want to navigate in here ResetPassIdComponent else I want to navigate in LoginFirstComponent. For this I create AuthGuard. export class AuthGuard implements CanActivate { myappurl: any; resetpasss: any; constructor(private router: Router, private auth: LoginService) { } geturl() { handleOpenURL((appURL: AppURL) => { console.log('Got the following appURL1', appURL); this.myappurl = appURL let url_1 = this.myappurl.toString(); let url_id = url_1.split("/").reverse()[0]; this.resetpasss = url_id let