2018-06-06 14:23:38 -04:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
|
2018-08-29 19:34:44 -04:00
|
|
|
import {getClosureSafeProperty} from '../util/property';
|
2018-06-06 14:23:38 -04:00
|
|
|
|
2018-08-29 19:34:44 -04:00
|
|
|
export const NG_COMPONENT_DEF = getClosureSafeProperty({ngComponentDef: getClosureSafeProperty});
|
|
|
|
export const NG_DIRECTIVE_DEF = getClosureSafeProperty({ngDirectiveDef: getClosureSafeProperty});
|
|
|
|
export const NG_PIPE_DEF = getClosureSafeProperty({ngPipeDef: getClosureSafeProperty});
|
|
|
|
export const NG_MODULE_DEF = getClosureSafeProperty({ngModuleDef: getClosureSafeProperty});
|
2019-05-17 10:13:31 -04:00
|
|
|
export const NG_LOCALE_ID_DEF = getClosureSafeProperty({ngLocaleIdDef: getClosureSafeProperty});
|
2018-08-29 19:34:44 -04:00
|
|
|
export const NG_BASE_DEF = getClosureSafeProperty({ngBaseDef: getClosureSafeProperty});
|
2018-09-21 21:38:13 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* If a directive is diPublic, bloomAdd sets a property on the type with this constant as
|
|
|
|
* the key and the directive's unique ID as the value. This allows us to map directives to their
|
|
|
|
* bloom filter bit for DI.
|
|
|
|
*/
|
2019-01-11 02:45:02 -05:00
|
|
|
// TODO(misko): This is wrong. The NG_ELEMENT_ID should never be minified.
|
2018-09-21 21:38:13 -04:00
|
|
|
export const NG_ELEMENT_ID = getClosureSafeProperty({__NG_ELEMENT_ID__: getClosureSafeProperty});
|