Skip to content

Commit

Permalink
fixup! fix(common): add upgrade sub-package to ng_package rule for @a…
Browse files Browse the repository at this point in the history
…ngular/common
  • Loading branch information
jasonaden committed Apr 25, 2019
1 parent ae87305 commit f3a8c1b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/common/upgrade/src/location_upgrade_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export class LocationUpgradeModule {
}
}

/** @internal */
export function provideAppBaseHref(config: LocationUpgradeConfig, appBaseHref?: string) {
if (config && config.appBaseHref != null) {
return config.appBaseHref;
Expand All @@ -85,20 +84,17 @@ export function provideAppBaseHref(config: LocationUpgradeConfig, appBaseHref?:
return '';
}

/** @internal */
export function provideUrlCodec(config: LocationUpgradeConfig) {
const codec = config && config.urlCodec || AngularJSUrlCodec;
return new (codec as any)();
}

/** @internal */
export function provideLocationStrategy(
platformLocation: PlatformLocation, baseHref: string, options: LocationUpgradeConfig = {}) {
return options.useHash ? new HashLocationStrategy(platformLocation, baseHref) :
new PathLocationStrategy(platformLocation, baseHref);
}

/** @internal */
export function provide$location(
ngUpgrade: UpgradeModule, location: Location, platformLocation: PlatformLocation,
urlCodec: UrlCodec, locationStrategy: LocationStrategy) {
Expand Down

0 comments on commit f3a8c1b

Please sign in to comment.