I have a logout bouton in shared page, but i want to call logout method after clicked. the implementation of my logout function is in app.comoponent.ts
can anyone help?
You need to make use of Shared service here. Have your method implemented in a shared service and call the method from your login and shared component.
There are couple solutions to this question.
1.) You have to follow this steps:
2.) You have to follow this steps and Correct one:
谢谢大家,我只是将登录按钮移动到新的标头组件,并将隐含内容移至header.comoponent.ts
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.