You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add option to implement CanDeactivate interface while generating a guard聽#15668
The CLI has a nice selection option and schematics to implement CanActivate, CanActivateChild, CanLoad interfaces while generating a new guard. While I understand that it is not as straightforward as the others, it would be nice to have the option to implement the CanDeactivate interface as well.
Describe the solution you'd like
It would be nice to have a flag to indicate the component for which we want to implement the CanDeactivate interface for while generating it. Generate the guard for the component and update the component to add a generic canDeactivate() method similar to how we auto-update a module when a new component is created under it.
Activity
fix(@schematics/angular): add CanDeactivate guard
fix(@schematics/angular): add CanDeactivate guard
fix(@schematics/angular): add CanDeactivate guard
fix(@schematics/angular): add CanDeactivate guard
fix(@schematics/angular): add CanDeactivate guard
angular-automatic-lock-bot commentedon Dec 15, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
fix(@schematics/angular): add CanDeactivate guard