parent
d43bd9b4ca
commit
3ff321475d
|
@ -26,7 +26,14 @@ export {
|
||||||
Visibility,
|
Visibility,
|
||||||
UNDEFINED
|
UNDEFINED
|
||||||
} from './src/core/di/injector';
|
} from './src/core/di/injector';
|
||||||
export {Binding, BindingBuilder, ResolvedBinding, Dependency, bind} from './src/core/di/binding';
|
export {
|
||||||
|
Binding,
|
||||||
|
BindingBuilder,
|
||||||
|
ResolvedBinding,
|
||||||
|
ResolvedFactory,
|
||||||
|
Dependency,
|
||||||
|
bind
|
||||||
|
} from './src/core/di/binding';
|
||||||
export {Key, KeyRegistry, TypeLiteral} from './src/core/di/key';
|
export {Key, KeyRegistry, TypeLiteral} from './src/core/di/key';
|
||||||
export {
|
export {
|
||||||
NoBindingError,
|
NoBindingError,
|
||||||
|
|
|
@ -460,8 +460,6 @@ function _normalizeBindings(bindings: Array<Type | Binding | any[]>,
|
||||||
res: Map<number, _NormalizedBinding | _NormalizedBinding[]>):
|
res: Map<number, _NormalizedBinding | _NormalizedBinding[]>):
|
||||||
Map<number, _NormalizedBinding | _NormalizedBinding[]> {
|
Map<number, _NormalizedBinding | _NormalizedBinding[]> {
|
||||||
ListWrapper.forEach(bindings, (b) => {
|
ListWrapper.forEach(bindings, (b) => {
|
||||||
var key, factory, normalized;
|
|
||||||
|
|
||||||
if (b instanceof Type) {
|
if (b instanceof Type) {
|
||||||
_normalizeBinding(bind(b).toClass(b), res);
|
_normalizeBinding(bind(b).toClass(b), res);
|
||||||
|
|
||||||
|
|
|
@ -19,9 +19,7 @@ import {
|
||||||
} from './exceptions';
|
} from './exceptions';
|
||||||
import {FunctionWrapper, Type, isPresent, isBlank, CONST_EXPR} from 'angular2/src/core/facade/lang';
|
import {FunctionWrapper, Type, isPresent, isBlank, CONST_EXPR} from 'angular2/src/core/facade/lang';
|
||||||
import {Key} from './key';
|
import {Key} from './key';
|
||||||
import {resolveForwardRef} from './forward_ref';
|
|
||||||
import {SelfMetadata, HostMetadata, SkipSelfMetadata} from './metadata';
|
import {SelfMetadata, HostMetadata, SkipSelfMetadata} from './metadata';
|
||||||
import {reflector} from 'angular2/src/core/reflection/reflection';
|
|
||||||
|
|
||||||
|
|
||||||
// Threshold for the dynamic version
|
// Threshold for the dynamic version
|
||||||
|
|
|
@ -2,7 +2,6 @@ import {CONST_EXPR} from 'angular2/src/core/facade/lang';
|
||||||
import {EventEmitter, ObservableWrapper} from 'angular2/src/core/facade/async';
|
import {EventEmitter, ObservableWrapper} from 'angular2/src/core/facade/async';
|
||||||
import {StringMap} from 'angular2/src/core/facade/collection';
|
import {StringMap} from 'angular2/src/core/facade/collection';
|
||||||
|
|
||||||
import {QueryList} from 'angular2/core';
|
|
||||||
import {Query, Directive, LifecycleEvent} from 'angular2/metadata';
|
import {Query, Directive, LifecycleEvent} from 'angular2/metadata';
|
||||||
import {forwardRef, Host, SkipSelf, Binding, Inject, Optional} from 'angular2/di';
|
import {forwardRef, Host, SkipSelf, Binding, Inject, Optional} from 'angular2/di';
|
||||||
|
|
||||||
|
@ -88,7 +87,6 @@ export class NgControlName extends NgControl {
|
||||||
validators: Function[];
|
validators: Function[];
|
||||||
_added = false;
|
_added = false;
|
||||||
|
|
||||||
// Scope the query once https://github.com/angular/angular/issues/2603 is fixed
|
|
||||||
constructor(@Host() @SkipSelf() parent: ControlContainer,
|
constructor(@Host() @SkipSelf() parent: ControlContainer,
|
||||||
@Optional() @Inject(NG_VALIDATORS) validators: Function[]) {
|
@Optional() @Inject(NG_VALIDATORS) validators: Function[]) {
|
||||||
super();
|
super();
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import {CONST_EXPR} from 'angular2/src/core/facade/lang';
|
import {CONST_EXPR} from 'angular2/src/core/facade/lang';
|
||||||
import {EventEmitter, ObservableWrapper} from 'angular2/src/core/facade/async';
|
import {EventEmitter, ObservableWrapper} from 'angular2/src/core/facade/async';
|
||||||
|
|
||||||
import {QueryList} from 'angular2/core';
|
|
||||||
import {Query, Directive, LifecycleEvent} from 'angular2/metadata';
|
import {Query, Directive, LifecycleEvent} from 'angular2/metadata';
|
||||||
import {forwardRef, Binding, Inject, Optional} from 'angular2/di';
|
import {forwardRef, Binding, Inject, Optional} from 'angular2/di';
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import {CONST_EXPR} from 'angular2/src/core/facade/lang';
|
import {CONST_EXPR} from 'angular2/src/core/facade/lang';
|
||||||
import {EventEmitter, ObservableWrapper} from 'angular2/src/core/facade/async';
|
import {EventEmitter, ObservableWrapper} from 'angular2/src/core/facade/async';
|
||||||
|
|
||||||
import {QueryList} from 'angular2/core';
|
|
||||||
import {Query, Directive, LifecycleEvent} from 'angular2/metadata';
|
import {Query, Directive, LifecycleEvent} from 'angular2/metadata';
|
||||||
import {forwardRef, Binding, Inject, Optional} from 'angular2/di';
|
import {forwardRef, Binding, Inject, Optional} from 'angular2/di';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import {OpaqueToken} from 'angular2/di';
|
||||||
|
|
||||||
import * as modelModule from './model';
|
import * as modelModule from './model';
|
||||||
|
|
||||||
export const NG_VALIDATORS = CONST_EXPR(new OpaqueToken("NgValidators"));
|
export const NG_VALIDATORS: OpaqueToken = CONST_EXPR(new OpaqueToken("NgValidators"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides a set of validators used by form controls.
|
* Provides a set of validators used by form controls.
|
||||||
|
|
Loading…
Reference in New Issue