@ -55,7 +55,7 @@ const APP_BASE_HREF_RESOLVED = new InjectionToken<string>('APP_BASE_HREF_RESOLVE
|
||||
|
||||
/**
|
||||
* `NgModule` used for providing and configuring Angular's Unified Location Service for upgrading.
|
||||
*
|
||||
*
|
||||
* @see [Using the Unified Angular Location Service](guide/upgrade#using-the-unified-angular-location-service)
|
||||
*
|
||||
* @publicApi
|
||||
|
@ -152,7 +152,9 @@ export class AngularJSUrlCodec implements UrlCodec {
|
||||
}
|
||||
|
||||
// https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L72
|
||||
decodeSearch(search: string) { return parseKeyValue(search); }
|
||||
decodeSearch(search: string) {
|
||||
return parseKeyValue(search);
|
||||
}
|
||||
|
||||
// https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L73
|
||||
decodeHash(hash: string) {
|
||||
@ -193,7 +195,9 @@ export class AngularJSUrlCodec implements UrlCodec {
|
||||
}
|
||||
}
|
||||
|
||||
areEqual(valA: string, valB: string) { return this.normalize(valA) === this.normalize(valB); }
|
||||
areEqual(valA: string, valB: string) {
|
||||
return this.normalize(valA) === this.normalize(valB);
|
||||
}
|
||||
|
||||
// https://github.com/angular/angular.js/blob/864c7f0/src/ng/urlUtils.js#L60
|
||||
parse(url: string, base?: string) {
|
||||
|
@ -27,7 +27,7 @@ export function deepEqual(a: any, b: any): boolean {
|
||||
}
|
||||
}
|
||||
|
||||
export function isAnchor(el: (Node & ParentNode) | Element | null): el is HTMLAnchorElement {
|
||||
export function isAnchor(el: (Node&ParentNode)|Element|null): el is HTMLAnchorElement {
|
||||
return (<HTMLAnchorElement>el).href !== undefined;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user