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
fix($routeProvider): do not deep-copy route definition objects
Deep-copying route definition objects can break specific custom implementations of `$sce` (used to
trust a `templateUrl` as RESOURCE_URL). The purpose of copying route definition objects was to guard
against the user's modifying the route definition object after route registration, while still
capturing inherited properties.
As suggested by @IgorMinar in angular#14699 (comment),
we can achieve both _and_ support custom `$sce` implementations, by shallow-copying instead.
This is an alternative implementation for angular#14699, which avoids the breaking change.
Fixesangular#14478Closesangular#14699Closesangular#14750
0 commit comments