Add deprecation warnigns to $location patch (#31898)

This commit is contained in:
Dominik Prokop
2021-03-11 15:05:35 +01:00
committed by GitHub
parent b017c65409
commit 77a024abb3
2 changed files with 22 additions and 3 deletions

View File

@ -31,7 +31,7 @@ const interceptAngularLocation = () => {
$provide.decorator('$location', [
'$delegate',
($delegate: ILocationService) => {
$delegate = new AngularLocationWrapper() as ILocationService;
$delegate = (new AngularLocationWrapper() as unknown) as ILocationService;
return $delegate;
},
]);