mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
c28aaa8663
Many developers find these interfaces useful for various reasons. Beyond that, the deprecation of the interfaces has incorrectly implied that existing class-based guard implementations need to be migrated to functions. Class injectables are _not_ deprecated and choosing to implement a guard's state and logic as a class that is injectable in the functions run inside the injection context is valid. resolves #50234 PR Close #56408