angular-challenges
angular-challenges copied to clipboard
Answer 48: Avoid losing form data solution
- I used a
canDeactivate
guard to prevent navigation while the form is dirty - as the challenge hint recommends in a functional way. - Furthermore i've added a
UnloadGuardDirective
, to warn the user before navigate outside the application, like closing the window or navigate to a different page. - Changed the dialog attribute
role="alert"
torole="alertdialog"
and addedaria-labelledby="alert-title"
&aria-describedby="alert-description"
to comply W3C conventions. Would love to get some feedback to this topic.
Great work, but you can rebase your challenge because of all the change you have made 😅
Great work, but you can rebase your challenge because of all the change you have made 😅
I think i did something wrong, now there are 41 files changed. Do you know how to fix this?
When you added your other PR, you must have changed the file names and now there is a merge conflict.
Check this Stack Overflow's last answer.
You could also try to avoid all this and try to update the branch with Github that might fix it.
This pull request is stale because it has been open for 15 days with no activity.