-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Closed
Labels
effort2: daysfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues
Milestone
Description
Implement lifecycle hooks: CanActivate, CanReuse, CanDeactivate, Activate, Reuse, and Deactivate.
For ES5:
function Cmp() {
// hook inferred by name
this.$canActivate = function () { ... };
}
For TS:
class Cmp {
// hook inferred by decorator
@CanActivate()
foo():Promise<boolean> { ... }
}
For Dart:
class Cmp implements CanActivateLifecycle {
// hook inferred by interface
canActivate() { ... }
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
effort2: daysfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues