mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
The `ApplicationModule` module has a number of tokens declared as non-tree-shakable providers. This commit updates them to make tree-shakable. PR Close #45102
23 lines
654 B
TypeScript
23 lines
654 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC 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
|
|
*/
|
|
|
|
import {ApplicationRef} from './application_ref';
|
|
import {NgModule} from './metadata';
|
|
|
|
/**
|
|
* Re-exported by `BrowserModule`, which is included automatically in the root
|
|
* `AppModule` when you create a new app with the CLI `new` command. Eagerly injects
|
|
* `ApplicationRef` to instantiate it.
|
|
*
|
|
* @publicApi
|
|
*/
|
|
@NgModule()
|
|
export class ApplicationModule {
|
|
// Inject ApplicationRef to make it eager...
|
|
constructor(appRef: ApplicationRef) {}
|
|
}
|