Skip to content

Commit 457c15c

Browse files
committed
feat(decorators): adds decorator versions of DI annotations.
In 'angular2/di' the symbol: - Inject is a decorator - InjectAnnotation is an annotation Internally one an get a hold of annotations without *Annotations appened (to make ts2dart work without workarounds) by importing from 'angular2/src/di/annotations_impl' instead of 'angular2/di'. This is needed only for users that transpile through TS and through ts2dart.
1 parent 28feac9 commit 457c15c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+121
-74
lines changed

modules/angular2/annotations.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
*
1010
*/
1111
export * from './src/core/annotations/annotations';
12-
export * from './src/core/decorators/decorators';
12+
export * from './src/core/annotations/decorators';

modules/angular2/di.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
* The `di` module provides dependency injection container services.
66
*/
77

8-
export {Inject, InjectPromise, InjectLazy, Injectable, Optional, DependencyAnnotation} from './src/di/annotations';
8+
export * from './src/di/annotations';
9+
export * from './src/di/decorators';
910
export {Injector} from './src/di/injector';
1011
export {Binding, ResolvedBinding, Dependency, bind} from './src/di/binding';
1112
export {Key, KeyRegistry} from './src/di/key';

modules/angular2/src/change_detection/change_detection.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ import {BindingRecord} from './binding_record';
88
import {DirectiveRecord} from './directive_record';
99
import {DEFAULT} from './constants';
1010
import {ChangeDetection, ProtoChangeDetector} from './interfaces';
11-
import {Injectable} from 'angular2/di';
11+
import {Injectable} from 'angular2/src/di/annotations_impl';
1212
import {List} from 'angular2/src/facade/collection';
1313

14-
1514
/**
1615
* Structural diffing for `Object`s and `Map`s.
1716
*

modules/angular2/src/change_detection/parser/lexer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Injectable} from 'angular2/di';
1+
import {Injectable} from 'angular2/src/di/annotations_impl';
22
import {List, ListWrapper, SetWrapper} from "angular2/src/facade/collection";
33
import {int, NumberWrapper, StringJoiner, StringWrapper} from "angular2/src/facade/lang";
44

modules/angular2/src/change_detection/parser/parser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Injectable} from 'angular2/di';
1+
import {Injectable} from 'angular2/src/di/annotations_impl';
22
import {int, isBlank, isPresent, BaseException, StringWrapper, RegExpWrapper} from 'angular2/src/facade/lang';
33
import {ListWrapper, List} from 'angular2/src/facade/collection';
44
import {Lexer, EOF, Token, $PERIOD, $COLON, $SEMICOLON, $LBRACKET, $RBRACKET,

modules/angular2/src/change_detection/pipes/pipe_registry.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {List, ListWrapper} from 'angular2/src/facade/collection';
22
import {isBlank, isPresent, BaseException, CONST} from 'angular2/src/facade/lang';
33
import {Pipe} from './pipe';
4-
import {Injectable} from 'angular2/di';
4+
import {Injectable} from 'angular2/src/di/annotations_impl';
55
import {ChangeDetectorRef} from '../change_detector_ref';
66

77
@Injectable()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import {
2+
ComponentAnnotation,
3+
DirectiveAnnotation
4+
} from './annotations';
5+
import {ViewAnnotation} from './view';
6+
import {AncestorAnnotation, ParentAnnotation} from './visibility';
7+
import {AttributeAnnotation, QueryAnnotation} from './di';
8+
import {makeDecorator, makeParamDecorator} from '../../util/decorators';
9+
10+
/* from annotations */
11+
export var Component = makeDecorator(ComponentAnnotation);
12+
export var Decorator = makeDecorator(DirectiveAnnotation);
13+
14+
/* from view */
15+
export var View = makeDecorator(ViewAnnotation);
16+
17+
/* from visibility */
18+
export var Ancestor = makeParamDecorator(AncestorAnnotation);
19+
export var Parent = makeParamDecorator(ParentAnnotation);
20+
21+
/* from di */
22+
export var Attribute = makeParamDecorator(AttributeAnnotation);
23+
export var Query = makeParamDecorator(QueryAnnotation);

modules/angular2/src/core/annotations_impl/annotations.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {CONST, normalizeBlank, isPresent} from 'angular2/src/facade/lang';
22
import {ListWrapper, List} from 'angular2/src/facade/collection';
3-
import {Injectable} from 'angular2/di';
3+
import {Injectable} from 'angular2/src/di/annotations_impl';
44
import {DEFAULT} from 'angular2/change_detection';
55

66
// type StringMap = {[idx: string]: string};

modules/angular2/src/core/annotations_impl/di.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {CONST} from 'angular2/src/facade/lang';
2-
import {DependencyAnnotation} from 'angular2/di';
2+
import {DependencyAnnotation} from 'angular2/src/di/annotations_impl';
33

44
/**
55
* Specifies that a constant attribute value should be injected.

modules/angular2/src/core/annotations_impl/visibility.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {CONST} from 'angular2/src/facade/lang';
2-
import {DependencyAnnotation} from 'angular2/di';
2+
import {DependencyAnnotation} from 'angular2/src/di/annotations_impl';
33

44
/**
55
* Specifies that an injector should retrieve a dependency from the direct parent.

modules/angular2/src/core/application.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Injector, bind, OpaqueToken, Optional} from 'angular2/di';
1+
import {Injector, bind, OpaqueToken} from 'angular2/di';
22
import {NumberWrapper, Type, isBlank, isPresent, BaseException,
33
assertionsEnabled, print, stringify} from 'angular2/src/facade/lang';
44
import {BrowserDomAdapter} from 'angular2/src/dom/browser_adapter';

modules/angular2/src/core/compiler/compiler.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import {Injectable, Binding} from 'angular2/di';
1+
import {Binding} from 'angular2/di';
2+
import {Injectable} from 'angular2/src/di/annotations_impl';
23
import {Type, isBlank, isPresent, BaseException, normalizeBlank, stringify} from 'angular2/src/facade/lang';
34
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
45
import {List, ListWrapper, Map, MapWrapper} from 'angular2/src/facade/collection';

modules/angular2/src/core/compiler/component_url_mapper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Injectable} from 'angular2/di';
1+
import {Injectable} from 'angular2/src/di/annotations_impl';
22
import {Type, isPresent} from 'angular2/src/facade/lang';
33
import {Map, MapWrapper} from 'angular2/src/facade/collection';
44

modules/angular2/src/core/compiler/directive_metadata_reader.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import {Injectable, Injector} from 'angular2/di';
1+
import {Injector} from 'angular2/di';
2+
import {Injectable} from 'angular2/src/di/annotations_impl';
23
import {Type, isPresent, BaseException, stringify} from 'angular2/src/facade/lang';
34
import {Directive, Component} from '../annotations_impl/annotations';
45
import {DirectiveMetadata} from './directive_metadata';

modules/angular2/src/core/compiler/dynamic_component_loader.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import {Key, Injector, Injectable, ResolvedBinding, Binding, bind} from 'angular2/di'
1+
import {Key, Injector, ResolvedBinding, Binding, bind} from 'angular2/di'
2+
import {Injectable} from 'angular2/src/di/annotations_impl';
23
import {Compiler} from './compiler';
34
import {Type, BaseException, stringify, isPresent} from 'angular2/src/facade/lang';
45
import {Promise} from 'angular2/src/facade/async';

modules/angular2/src/core/compiler/proto_view_factory.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import {Injectable} from 'angular2/di';
1+
import {Injectable} from 'angular2/src/di/annotations_impl';
2+
23
import {List, ListWrapper, MapWrapper} from 'angular2/src/facade/collection';
34
import {isPresent, isBlank} from 'angular2/src/facade/lang';
45
import {reflector} from 'angular2/src/reflection/reflection';
@@ -29,7 +30,7 @@ class BindingRecordsCreator {
2930
bindings = ListWrapper.concat(bindings, this._createElementPropertyRecords(boundElementIndex, renderElementBinder));
3031
bindings = ListWrapper.concat(bindings, this._createDirectiveRecords(boundElementIndex, sortedDirectives[boundElementIndex]));
3132
}
32-
33+
3334
return bindings;
3435
}
3536

modules/angular2/src/core/compiler/template_resolver.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Injectable} from 'angular2/di';
1+
import {Injectable} from 'angular2/src/di/annotations_impl';
22
import {View} from 'angular2/src/core/annotations_impl/view';
33

44
import {Type, stringify, isBlank, BaseException} from 'angular2/src/facade/lang';

modules/angular2/src/core/compiler/view_manager.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import {Injector, Injectable, Binding} from 'angular2/di';
1+
import {Injector, Binding} from 'angular2/di';
2+
import {Injectable} from 'angular2/src/di/annotations_impl';
23
import {ListWrapper, MapWrapper, Map, StringMapWrapper, List} from 'angular2/src/facade/collection';
34
import {isPresent, isBlank, BaseException} from 'angular2/src/facade/lang';
45
import * as viewModule from './view';
@@ -216,4 +217,4 @@ export class AppViewManager {
216217
}
217218
view.render = null;
218219
}
219-
}
220+
}

modules/angular2/src/core/compiler/view_manager_utils.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import {Injectable, Injector, Binding} from 'angular2/di';
1+
import {Injector, Binding} from 'angular2/di';
2+
import {Injectable} from 'angular2/src/di/annotations_impl';
23
import {ListWrapper, MapWrapper, Map, StringMapWrapper, List} from 'angular2/src/facade/collection';
34
import * as eli from './element_injector';
45
import {isPresent, isBlank, BaseException} from 'angular2/src/facade/lang';
@@ -241,4 +242,4 @@ export class AppViewManagerUtils {
241242
view.changeDetector.dehydrate();
242243
}
243244

244-
}
245+
}

modules/angular2/src/core/compiler/view_pool.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import {Inject, OpaqueToken} from 'angular2/di';
1+
import {Inject} from 'angular2/src/di/annotations_impl';
2+
23
import {ListWrapper, MapWrapper, Map, List} from 'angular2/src/facade/collection';
34
import {isPresent, isBlank} from 'angular2/src/facade/lang';
45

@@ -37,4 +38,4 @@ export class AppViewPool {
3738
}
3839
}
3940

40-
}
41+
}

modules/angular2/src/core/exception_handler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Injectable} from 'angular2/di';
1+
import {Injectable} from 'angular2/src/di/annotations_impl';
22
import {isPresent, print} from 'angular2/src/facade/lang';
33
import {ListWrapper, isListLikeIterable} from 'angular2/src/facade/collection';
44
import {DOM} from 'angular2/src/dom/dom_adapter';

modules/angular2/src/core/life_cycle/life_cycle.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Injectable} from 'angular2/di';
1+
import {Injectable} from 'angular2/src/di/annotations_impl';
22
import {ChangeDetector} from 'angular2/change_detection';
33
import {VmTurnZone} from 'angular2/src/core/zone/vm_turn_zone';
44
import {ExceptionHandler} from 'angular2/src/core/exception_handler';

modules/angular2/src/core/testability/testability.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Injectable} from 'angular2/di';
1+
import {Injectable} from 'angular2/src/di/annotations_impl';
22
import {DOM} from 'angular2/src/dom/dom_adapter';
33
import {Map, MapWrapper, List, ListWrapper} from 'angular2/src/facade/collection';
44
import {StringWrapper, isBlank, BaseException} from 'angular2/src/facade/lang';
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
library angular2.di.annotations;
2+
3+
export './annotations_impl.dart';
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* This indirection is needed to free up Component, etc symbols in the public API
3+
* to be used by the decorator versions of these annotations.
4+
*/
5+
6+
export {
7+
Inject as InjectAnnotation,
8+
InjectPromise as InjectPromiseAnnotation,
9+
InjectLazy as InjectLazyAnnotation,
10+
Optional as OptionalAnnotation,
11+
Injectable as InjectableAnnotation,
12+
DependencyAnnotation, // abstract base class, does not need a decorator
13+
} from './annotations_impl';

modules/angular2/src/di/binding.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {Type, isBlank, isPresent, CONST} from 'angular2/src/facade/lang';
22
import {List, MapWrapper, ListWrapper} from 'angular2/src/facade/collection';
33
import {reflector} from 'angular2/src/reflection/reflection';
44
import {Key} from './key';
5-
import {Inject, InjectLazy, InjectPromise, Optional, DependencyAnnotation} from './annotations';
5+
import {Inject, InjectLazy, InjectPromise, Optional, DependencyAnnotation} from './annotations_impl';
66
import {NoAnnotationError} from './exceptions';
77

88
/**
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
library angular2.di.decorators;
2+
3+
/* This file is empty because, Dart does not have decorators. */
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import {
2+
InjectAnnotation,
3+
InjectPromiseAnnotation,
4+
InjectLazyAnnotation,
5+
OptionalAnnotation,
6+
InjectableAnnotation} from './annotations';
7+
import {makeDecorator, makeParamDecorator} from '../util/decorators';
8+
9+
export var Inject = makeParamDecorator(InjectAnnotation);
10+
export var InjectPromise = makeParamDecorator(InjectPromiseAnnotation);
11+
export var InjectLazy = makeParamDecorator(InjectLazyAnnotation);
12+
export var Optional = makeParamDecorator(OptionalAnnotation);
13+
export var Injectable = makeDecorator(InjectableAnnotation);

modules/angular2/src/forms/directives.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {Directive, onChange} from 'angular2/src/core/annotations_impl/annotations';
22
import {Ancestor} from 'angular2/src/core/annotations_impl/visibility';
33
import {ElementRef} from 'angular2/src/core/compiler/element_ref';
4-
import {Optional} from 'angular2/di';
4+
import {Optional} from 'angular2/src/di/annotations_impl';
55
import {Renderer} from 'angular2/src/render/api';
66
import {isPresent, isString} from 'angular2/src/facade/lang';
77
import {ListWrapper} from 'angular2/src/facade/collection';

modules/angular2/src/render/dom/compiler/compiler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Injectable} from 'angular2/di';
1+
import {Injectable} from 'angular2/src/di/annotations_impl';
22

33
import {PromiseWrapper, Promise} from 'angular2/src/facade/async';
44
import {BaseException} from 'angular2/src/facade/lang';

modules/angular2/src/render/dom/compiler/template_loader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Injectable} from 'angular2/di';
1+
import {Injectable} from 'angular2/src/di/annotations_impl';
22
import {isBlank, isPresent, BaseException, stringify} from 'angular2/src/facade/lang';
33
import {Map, MapWrapper, StringMapWrapper, StringMap} from 'angular2/src/facade/collection';
44
import {PromiseWrapper, Promise} from 'angular2/src/facade/async';

modules/angular2/src/render/dom/direct_dom_renderer.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import {Injectable} from 'angular2/di';
1+
import {Injectable} from 'angular2/src/di/annotations_impl';
2+
23
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
34
import {List, ListWrapper} from 'angular2/src/facade/collection';
45
import {isBlank, isPresent, BaseException} from 'angular2/src/facade/lang';

modules/angular2/src/render/dom/shadow_dom/style_inliner.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Injectable} from 'angular2/di';
1+
import {Injectable} from 'angular2/src/di/annotations_impl';
22
import {XHR} from 'angular2/src/services/xhr';
33
import {ListWrapper} from 'angular2/src/facade/collection';
44

modules/angular2/src/render/dom/shadow_dom/style_url_resolver.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Some of the code comes from WebComponents.JS
22
// https://github.com/webcomponents/webcomponentsjs/blob/master/src/HTMLImports/path.js
33

4-
import {Injectable} from 'angular2/di';
4+
import {Injectable} from 'angular2/src/di/annotations_impl';
55
import {RegExp, RegExpWrapper, StringWrapper} from 'angular2/src/facade/lang';
66
import {UrlResolver} from 'angular2/src/services/url_resolver';
77

modules/angular2/src/render/dom/view/view_factory.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {OpaqueToken, Inject, Injectable} from 'angular2/di';
1+
import {Inject, Injectable} from 'angular2/src/di/annotations_impl';
22
import {int, isPresent, isBlank, BaseException} from 'angular2/src/facade/lang';
33
import {ListWrapper, MapWrapper, Map, StringMapWrapper, List} from 'angular2/src/facade/collection';
44

modules/angular2/src/render/dom/view/view_hydrator.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Injectable} from 'angular2/di';
1+
import {Injectable} from 'angular2/src/di/annotations_impl';
22
import {int, isPresent, isBlank, BaseException} from 'angular2/src/facade/lang';
33
import {ListWrapper, MapWrapper, Map, StringMapWrapper, List} from 'angular2/src/facade/collection';
44

modules/angular2/src/services/url_resolver.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Injectable} from 'angular2/di';
1+
import {Injectable} from 'angular2/src/di/annotations_impl';
22
import {isPresent, isBlank, RegExpWrapper, BaseException} from 'angular2/src/facade/lang';
33
import {DOM} from 'angular2/src/dom/dom_adapter';
44

modules/angular2/src/services/xhr_impl.es6

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Injectable} from 'angular2/di';
1+
import {Injectable} from 'angular2/src/di/annotations_impl';
22
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
33
import {XHR} from './xhr';
44

Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
import {
2-
ComponentAnnotation,
3-
DirectiveAnnotation
4-
} from '../annotations/annotations';
5-
import {ViewAnnotation} from '../annotations/view';
6-
import {AncestorAnnotation, ParentAnnotation} from '../annotations/visibility';
7-
import {AttributeAnnotation, QueryAnnotation} from '../annotations/di';
81
import {global} from 'angular2/src/facade/lang';
92

10-
function makeDecorator(annotationCls) {
3+
export function makeDecorator(annotationCls) {
114
return function(...args) {
125
var Reflect = global.Reflect;
136
if (!(Reflect && Reflect.getMetadata)) {
@@ -24,7 +17,7 @@ function makeDecorator(annotationCls) {
2417
}
2518
}
2619

27-
function makeParamDecorator(annotationCls) {
20+
export function makeParamDecorator(annotationCls) {
2821
return function(...args) {
2922
var Reflect = global.Reflect;
3023
if (!(Reflect && Reflect.getMetadata)) {
@@ -45,18 +38,3 @@ function makeParamDecorator(annotationCls) {
4538
}
4639
}
4740
}
48-
49-
/* from annotations */
50-
export var Component = makeDecorator(ComponentAnnotation);
51-
export var Decorator = makeDecorator(DirectiveAnnotation);
52-
53-
/* from view */
54-
export var View = makeDecorator(ViewAnnotation);
55-
56-
/* from visibility */
57-
export var Ancestor = makeParamDecorator(AncestorAnnotation);
58-
export var Parent = makeParamDecorator(ParentAnnotation);
59-
60-
/* from di */
61-
export var Attribute = makeParamDecorator(AttributeAnnotation);
62-
export var Query = makeParamDecorator(QueryAnnotation);

modules/angular2/test/core/application_spec.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ import {Component, Directive} from 'angular2/src/core/annotations_impl/annotatio
1616
import {DOM} from 'angular2/src/dom/dom_adapter';
1717
import {ListWrapper} from 'angular2/src/facade/collection';
1818
import {PromiseWrapper} from 'angular2/src/facade/async';
19-
import {bind, Inject} from 'angular2/di';
19+
import {bind} from 'angular2/di';
20+
import {Inject} from 'angular2/src/di/annotations_impl';
2021
import {View} from 'angular2/src/core/annotations_impl/view';
2122
import {LifeCycle} from 'angular2/src/core/life_cycle/life_cycle';
2223
import {Testability, TestabilityRegistry} from 'angular2/src/core/testability/testability';

modules/angular2/test/core/compiler/element_injector_spec.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import {ProtoElementInjector, PreBuiltObjects, DirectiveBinding, TreeNode}
66
import {Parent, Ancestor} from 'angular2/src/core/annotations_impl/visibility';
77
import {Attribute, Query} from 'angular2/src/core/annotations_impl/di';
88
import {Directive, onDestroy} from 'angular2/src/core/annotations_impl/annotations';
9-
import {Optional, Injector, Inject, bind} from 'angular2/di';
9+
import {bind, Injector} from 'angular2/di';
10+
import {Optional, Inject} from 'angular2/src/di/annotations_impl';
1011
import {AppProtoView, AppView} from 'angular2/src/core/compiler/view';
1112
import {ViewContainerRef} from 'angular2/src/core/compiler/view_container_ref';
1213
import {ProtoViewRef} from 'angular2/src/core/compiler/view_ref';

modules/angular2/test/di/async_spec.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import {
99
it,
1010
xit,
1111
} from 'angular2/test_lib';
12-
import {Injector, Inject, InjectPromise, bind, Key} from 'angular2/di';
12+
import {Injector, bind, Key} from 'angular2/di';
13+
import {Inject, InjectPromise} from 'angular2/src/di/annotations_impl';
1314
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
1415

1516
class UserList {

0 commit comments

Comments
 (0)