
Currently downgraded ng2 elements fail inside a ui-router view because they are unable to require an ng2 Injector via the require attribute of the DDO, because ui-router compiles its templates before they are inserted in a ui-view. This adds a "fallback" behavior if a parent injector cannot be found to go to the root ng2 Injector.
16 lines
642 B
TypeScript
16 lines
642 B
TypeScript
export const NG2_COMPILER = 'ng2.Compiler';
|
|
export const NG2_INJECTOR = 'ng2.Injector';
|
|
export const NG2_COMPONENT_FACTORY_REF_MAP = 'ng2.ComponentFactoryRefMap';
|
|
export const NG2_ZONE = 'ng2.NgZone';
|
|
|
|
export const NG1_CONTROLLER = '$controller';
|
|
export const NG1_SCOPE = '$scope';
|
|
export const NG1_ROOT_SCOPE = '$rootScope';
|
|
export const NG1_COMPILE = '$compile';
|
|
export const NG1_HTTP_BACKEND = '$httpBackend';
|
|
export const NG1_INJECTOR = '$injector';
|
|
export const NG1_PARSE = '$parse';
|
|
export const NG1_TEMPLATE_CACHE = '$templateCache';
|
|
export const NG1_TESTABILITY = '$$testability';
|
|
export const REQUIRE_INJECTOR = '?^' + NG2_INJECTOR;
|