I've been dealing with an issue where a function that I imported from another class isn't getting called and the parser isn't recognizing it. The Popover in my code also can't be closed. I've tried various similar solutions, but none of them seem to work for me. Since I'm not very familiar with TypeScript, I'm hoping I haven't made any mistakes.
export function dismissWindow() {}
@Component({
selector: 'app-user',
templateUrl: './user.page.html',
styleUrls: ['./user.page.scss'],
})
export class UserPage implements OnInit {
public popover;
//Pop up Informationen rechts oben
async notifications(ev: any) {
this.popover = await this.popoverCtrl.create({
component: NotificationsComponent,
event: ev,
animated: true,
showBackdrop: true
});
return await this.popover.present();
}
ngOnInit() {
}
public dismissWindow(){
console.log("Dismiss got called");
this.popover.dismiss();
}
}
import { UserPage } from './../user/user.page';
import { dismissWindow} from './../user/user.page';
LogOut() {
console.log("in logout method")
dismissWindow();
console.log("Call From Logout");
this.router.navigate(['login'])
}
}