fix(exports): update module exports

This commit is contained in:
Adam Bradley
2016-09-14 15:54:20 -05:00
parent 8585427fb4
commit 6784f5e744
8 changed files with 67 additions and 114 deletions

View File

@ -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) !== '/') {