
/**
* @fileoverview added by tsickle
* Generated from: packages/core/src/application_tokens.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
* A DI Token representing a unique string id assigned to the application by Angular and used
* primarily for prefixing application attributes and CSS styles when
* {\@link ViewEncapsulation#Emulated ViewEncapsulation.Emulated} is being used.
*
* If you need to avoid randomly generated value to be used as an application id, you can provide
* a custom value via a DI provider configuring the root {\@link Injector}
* using this token.
* \@publicApi
* @type {?}
const APP_ID = new InjectionToken('AppId');
* @return {?}
function _appIdRandomProviderFactory() {
return `${_randomChar()}${_randomChar()}${_randomChar()}`;
}
* Providers that will generate a random APP_ID_TOKEN.
const APP_ID_RANDOM_PROVIDER = {
provide: APP_ID,
useFactory: _appIdRandomProviderFactory,
deps: (/** @type {?} */ ([])),
};
function _randomChar() {
return String.fromCharCode(97 + Math.floor(Math.random() * 25));