mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
fix(exports): update module exports
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { Injectable, OpaqueToken } from '@angular/core';
|
||||
import { Location, LocationStrategy, HashLocationStrategy } from '@angular/common';
|
||||
import { Location } from '@angular/common';
|
||||
|
||||
import { App } from '../components/app/app';
|
||||
import { convertToViews, isNav, isTab, isTabs, NavSegment, DIRECTION_BACK } from './nav-util';
|
||||
@ -418,25 +418,6 @@ export function setupDeepLinker(app: App, serializer: UrlSerializer, location: L
|
||||
export const UserDeepLinkConfig = new OpaqueToken('USERLINKS');
|
||||
|
||||
|
||||
export function provideDeepLinker(userDeepLinkConfig: any): any[] {
|
||||
return [
|
||||
UrlSerializer,
|
||||
Location,
|
||||
{ provide: UserDeepLinkConfig, useValue: userDeepLinkConfig },
|
||||
{ provide: LocationStrategy, useClass: HashLocationStrategy },
|
||||
{
|
||||
provide: DeepLinker,
|
||||
useFactory: setupDeepLinker,
|
||||
deps: [
|
||||
App,
|
||||
UrlSerializer,
|
||||
Location
|
||||
]
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
export function normalizeUrl(browserUrl: string): string {
|
||||
browserUrl = browserUrl.trim();
|
||||
if (browserUrl.charAt(0) !== '/') {
|
||||
|
Reference in New Issue
Block a user