Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug:the add-task component won't show normally #6

Open
champion0122 opened this issue Aug 12, 2022 · 0 comments
Open

Bug:the add-task component won't show normally #6

champion0122 opened this issue Aug 12, 2022 · 0 comments

Comments

@champion0122
Copy link

champion0122 commented Aug 12, 2022

Firstly, i clicked the 'Add' button to show add-task form.
image

Then, i click the 'About' link to the page about.I couldn't find the add-task form after i go back to the '/' path.
image

The *ngIf used in add-task component may used the default value set for variable 'showAddTask'(false).

I'm a newbie in angular, i want to know which way to solve it is the angular way.Thanks!

BTW, if we don't use unsubscribe observable in service, the subscribe will perform more than once unexpectedly after we switch the pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant