refactor: move all utility functions into the utils dir

This commit is contained in:
vsavkin
2016-05-24 13:57:51 -07:00
parent 013f9a2bbc
commit c9b4bcf689
9 changed files with 10 additions and 11 deletions

View File

@ -1,11 +1,10 @@
import { UrlTree, UrlSegment, equalUrlSegments } from './url_tree';
import { shallowEqual, flatten, first, merge } from './util';
import { TreeNode, rootNode } from './tree';
import { shallowEqual, flatten, first, merge } from './utils/collection';
import { TreeNode, rootNode } from './utils/tree';
import { RouterState, ActivatedRoute, Params, PRIMARY_OUTLET } from './router_state';
import { RouterConfig, Route } from './config';
import { ComponentResolver, ComponentFactory, Type } from '@angular/core';
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
import { Observer } from 'rxjs/Observer';
export function recognize(componentResolver: ComponentResolver, config: RouterConfig,
url: UrlTree, existingState: RouterState): Promise<RouterState> {