chore: update all import paths
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import {RouteHandler} from './route_handler';
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {isPresent, Type} from 'angular2/src/facade/lang';
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/core/facade/async';
|
||||
import {isPresent, Type} from 'angular2/src/core/facade/lang';
|
||||
|
||||
export class AsyncRouteHandler implements RouteHandler {
|
||||
_resolvedComponent: Promise<any> = null;
|
||||
|
@ -1,7 +1,7 @@
|
||||
import {DOM} from 'angular2/src/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {Injectable} from 'angular2/di';
|
||||
import {LocationStrategy} from './location_strategy';
|
||||
import {EventListener, History, Location} from 'angular2/src/facade/browser';
|
||||
import {EventListener, History, Location} from 'angular2/src/core/facade/browser';
|
||||
|
||||
@Injectable()
|
||||
export class HashLocationStrategy extends LocationStrategy {
|
||||
|
@ -5,9 +5,9 @@ import {
|
||||
StringMapWrapper,
|
||||
List,
|
||||
ListWrapper
|
||||
} from 'angular2/src/facade/collection';
|
||||
import {isPresent, isBlank, normalizeBlank, Type} from 'angular2/src/facade/lang';
|
||||
import {Promise} from 'angular2/src/facade/async';
|
||||
} from 'angular2/src/core/facade/collection';
|
||||
import {isPresent, isBlank, normalizeBlank, Type} from 'angular2/src/core/facade/lang';
|
||||
import {Promise} from 'angular2/src/core/facade/async';
|
||||
|
||||
import {PathRecognizer} from './path_recognizer';
|
||||
import {Url} from './url_parser';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {ComponentInstruction} from './instruction';
|
||||
import {global} from 'angular2/src/facade/lang';
|
||||
import {global} from 'angular2/src/core/facade/lang';
|
||||
|
||||
// This is here only so that after TS transpilation the file is not empty.
|
||||
// TODO(rado): find a better way to fix this, or remove if likely culprit
|
||||
|
@ -3,9 +3,9 @@
|
||||
* to be used by the decorator versions of these annotations.
|
||||
*/
|
||||
|
||||
import {makeDecorator} from 'angular2/src/util/decorators';
|
||||
import {makeDecorator} from 'angular2/src/core/util/decorators';
|
||||
import {CanActivate as CanActivateAnnotation} from './lifecycle_annotations_impl';
|
||||
import {Promise} from 'angular2/src/facade/async';
|
||||
import {Promise} from 'angular2/src/core/facade/async';
|
||||
import {ComponentInstruction} from 'angular2/src/router/instruction';
|
||||
|
||||
export {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {CONST, CONST_EXPR} from 'angular2/src/facade/lang';
|
||||
import {CONST, CONST_EXPR} from 'angular2/src/core/facade/lang';
|
||||
|
||||
@CONST()
|
||||
export class RouteLifecycleHook {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import {LocationStrategy} from './location_strategy';
|
||||
import {StringWrapper, isPresent, CONST_EXPR} from 'angular2/src/facade/lang';
|
||||
import {EventEmitter, ObservableWrapper} from 'angular2/src/facade/async';
|
||||
import {BaseException, isBlank} from 'angular2/src/facade/lang';
|
||||
import {StringWrapper, isPresent, CONST_EXPR} from 'angular2/src/core/facade/lang';
|
||||
import {EventEmitter, ObservableWrapper} from 'angular2/src/core/facade/async';
|
||||
import {BaseException, isBlank} from 'angular2/src/core/facade/lang';
|
||||
import {OpaqueToken, Injectable, Optional, Inject} from 'angular2/di';
|
||||
|
||||
export const APP_BASE_HREF: OpaqueToken = CONST_EXPR(new OpaqueToken('appBaseHref'));
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {BaseException} from 'angular2/src/facade/lang';
|
||||
import {BaseException} from 'angular2/src/core/facade/lang';
|
||||
|
||||
function _abstract() {
|
||||
return new BaseException('This method is abstract');
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {DOM} from 'angular2/src/dom/dom_adapter';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {Injectable} from 'angular2/di';
|
||||
import {EventListener, History, Location} from 'angular2/src/facade/browser';
|
||||
import {EventListener, History, Location} from 'angular2/src/core/facade/browser';
|
||||
import {LocationStrategy} from './location_strategy';
|
||||
|
||||
@Injectable()
|
||||
|
@ -6,7 +6,7 @@ import {
|
||||
isPresent,
|
||||
isBlank,
|
||||
BaseException
|
||||
} from 'angular2/src/facade/lang';
|
||||
} from 'angular2/src/core/facade/lang';
|
||||
import {
|
||||
Map,
|
||||
MapWrapper,
|
||||
@ -14,8 +14,8 @@ import {
|
||||
StringMapWrapper,
|
||||
List,
|
||||
ListWrapper
|
||||
} from 'angular2/src/facade/collection';
|
||||
import {IMPLEMENTS} from 'angular2/src/facade/lang';
|
||||
} from 'angular2/src/core/facade/collection';
|
||||
import {IMPLEMENTS} from 'angular2/src/core/facade/lang';
|
||||
|
||||
import {RouteHandler} from './route_handler';
|
||||
import {Url, RootUrl, serializeParams} from './url_parser';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {List, ListWrapper} from 'angular2/src/facade/collection';
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/core/facade/async';
|
||||
import {List, ListWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {Instruction} from './instruction';
|
||||
import {Injectable} from 'angular2/di';
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {RouteConfig as RouteConfigAnnotation, RouteDefinition} from './route_config_impl';
|
||||
import {makeDecorator} from 'angular2/src/util/decorators';
|
||||
import {List} from 'angular2/src/facade/collection';
|
||||
import {makeDecorator} from 'angular2/src/core/util/decorators';
|
||||
import {List} from 'angular2/src/core/facade/collection';
|
||||
|
||||
export {Route, Redirect, AuxRoute, AsyncRoute, RouteDefinition} from './route_config_impl';
|
||||
export var RouteConfig: (configs: List<RouteDefinition>) => ClassDecorator =
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {CONST, Type} from 'angular2/src/facade/lang';
|
||||
import {List} from 'angular2/src/facade/collection';
|
||||
import {CONST, Type} from 'angular2/src/core/facade/lang';
|
||||
import {List} from 'angular2/src/core/facade/collection';
|
||||
import {RouteDefinition} from './route_definition';
|
||||
export {RouteDefinition} from './route_definition';
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {AsyncRoute, AuxRoute, Route, Redirect, RouteDefinition} from './route_config_decorator';
|
||||
import {ComponentDefinition} from './route_definition';
|
||||
import {Type, BaseException} from 'angular2/src/facade/lang';
|
||||
import {Type, BaseException} from 'angular2/src/core/facade/lang';
|
||||
|
||||
/**
|
||||
* Given a JS Object that represents... returns a corresponding Route, AsyncRoute, or Redirect
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {OpaqueToken} from 'angular2/di';
|
||||
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
||||
import {CONST_EXPR} from 'angular2/src/core/facade/lang';
|
||||
|
||||
export const ROUTE_DATA: OpaqueToken = CONST_EXPR(new OpaqueToken('routeData'));
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {CONST, Type} from 'angular2/src/facade/lang';
|
||||
import {CONST, Type} from 'angular2/src/core/facade/lang';
|
||||
|
||||
export interface RouteDefinition {
|
||||
path: string;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {Type} from 'angular2/src/facade/lang';
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/core/facade/async';
|
||||
import {Type} from 'angular2/src/core/facade/lang';
|
||||
|
||||
export interface RouteHandler {
|
||||
componentType: Type;
|
||||
|
@ -2,7 +2,7 @@ library angular.router.route_lifecycle_reflector;
|
||||
|
||||
import 'package:angular2/src/router/lifecycle_annotations_impl.dart';
|
||||
import 'package:angular2/src/router/interfaces.dart';
|
||||
import 'package:angular2/src/reflection/reflection.dart';
|
||||
import 'package:angular2/src/core/reflection/reflection.dart';
|
||||
|
||||
bool hasLifecycleHook(RouteLifecycleHook e, type) {
|
||||
if (type is! Type) return false;
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {Type, isPresent} from 'angular2/src/facade/lang';
|
||||
import {Type, isPresent} from 'angular2/src/core/facade/lang';
|
||||
import {RouteLifecycleHook, CanActivate} from './lifecycle_annotations_impl';
|
||||
import {reflector} from 'angular2/src/reflection/reflection';
|
||||
import {reflector} from 'angular2/src/core/reflection/reflection';
|
||||
|
||||
export function hasLifecycleHook(e: RouteLifecycleHook, type): boolean {
|
||||
if (!(type instanceof Type)) return false;
|
||||
|
@ -8,7 +8,7 @@ import {
|
||||
isStringMap,
|
||||
BaseException,
|
||||
Type
|
||||
} from 'angular2/src/facade/lang';
|
||||
} from 'angular2/src/core/facade/lang';
|
||||
import {
|
||||
Map,
|
||||
MapWrapper,
|
||||
@ -16,7 +16,7 @@ import {
|
||||
ListWrapper,
|
||||
StringMap,
|
||||
StringMapWrapper
|
||||
} from 'angular2/src/facade/collection';
|
||||
} from 'angular2/src/core/facade/collection';
|
||||
|
||||
import {PathRecognizer, PathMatch} from './path_recognizer';
|
||||
import {Route, AsyncRoute, AuxRoute, Redirect, RouteDefinition} from './route_config_impl';
|
||||
|
@ -8,8 +8,8 @@ import {
|
||||
MapWrapper,
|
||||
StringMap,
|
||||
StringMapWrapper
|
||||
} from 'angular2/src/facade/collection';
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
|
||||
} from 'angular2/src/core/facade/collection';
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/core/facade/async';
|
||||
import {
|
||||
isPresent,
|
||||
isBlank,
|
||||
@ -21,7 +21,7 @@ import {
|
||||
BaseException,
|
||||
Type,
|
||||
getTypeNameForDebugging
|
||||
} from 'angular2/src/facade/lang';
|
||||
} from 'angular2/src/core/facade/lang';
|
||||
import {
|
||||
RouteConfig,
|
||||
AsyncRoute,
|
||||
@ -30,7 +30,7 @@ import {
|
||||
Redirect,
|
||||
RouteDefinition
|
||||
} from './route_config_impl';
|
||||
import {reflector} from 'angular2/src/reflection/reflection';
|
||||
import {reflector} from 'angular2/src/core/reflection/reflection';
|
||||
import {Injectable} from 'angular2/di';
|
||||
import {normalizeRouteConfig} from './route_config_nomalizer';
|
||||
import {parser, Url, pathSegmentsToUrl} from './url_parser';
|
||||
|
@ -1,5 +1,16 @@
|
||||
import {Promise, PromiseWrapper, EventEmitter, ObservableWrapper} from 'angular2/src/facade/async';
|
||||
import {Map, StringMapWrapper, MapWrapper, List, ListWrapper} from 'angular2/src/facade/collection';
|
||||
import {
|
||||
Promise,
|
||||
PromiseWrapper,
|
||||
EventEmitter,
|
||||
ObservableWrapper
|
||||
} from 'angular2/src/core/facade/async';
|
||||
import {
|
||||
Map,
|
||||
StringMapWrapper,
|
||||
MapWrapper,
|
||||
List,
|
||||
ListWrapper
|
||||
} from 'angular2/src/core/facade/collection';
|
||||
import {
|
||||
isBlank,
|
||||
isString,
|
||||
@ -8,7 +19,7 @@ import {
|
||||
Type,
|
||||
isArray,
|
||||
BaseException
|
||||
} from 'angular2/src/facade/lang';
|
||||
} from 'angular2/src/core/facade/lang';
|
||||
|
||||
import {RouteRegistry} from './route_registry';
|
||||
import {Pipeline} from './pipeline';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {Directive} from '../core/metadata';
|
||||
import {List, StringMap, StringMapWrapper} from 'angular2/src/facade/collection';
|
||||
import {List, StringMap, StringMapWrapper} from 'angular2/src/core/facade/collection';
|
||||
|
||||
import {Router} from './router';
|
||||
import {Location} from './location';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {StringMapWrapper} from 'angular2/src/facade/collection';
|
||||
import {isBlank, isPresent} from 'angular2/src/facade/lang';
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/core/facade/async';
|
||||
import {StringMapWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {isBlank, isPresent} from 'angular2/src/core/facade/lang';
|
||||
|
||||
import {Directive, Attribute} from '../core/metadata';
|
||||
import {DynamicComponentLoader, ComponentRef, ElementRef} from 'angular2/core';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {RouteHandler} from './route_handler';
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {Type} from 'angular2/src/facade/lang';
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/core/facade/async';
|
||||
import {Type} from 'angular2/src/core/facade/lang';
|
||||
|
||||
export class SyncRouteHandler implements RouteHandler {
|
||||
_resolvedComponent: Promise<any> = null;
|
||||
|
@ -1,11 +1,11 @@
|
||||
import {List, StringMap, StringMapWrapper} from 'angular2/src/facade/collection';
|
||||
import {List, StringMap, StringMapWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {
|
||||
isPresent,
|
||||
isBlank,
|
||||
BaseException,
|
||||
RegExpWrapper,
|
||||
CONST_EXPR
|
||||
} from 'angular2/src/facade/lang';
|
||||
} from 'angular2/src/core/facade/lang';
|
||||
|
||||
|
||||
export class Url {
|
||||
|
Reference in New Issue
Block a user