This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This is an example in a previous application to show | |
| // how to use the variables in the `environment.ts` | |
| // file in different Nx libraries. | |
| // First, we create the injection tokens in a shared library, for this example, I used the file: | |
| // `libs/shared/util/environment-config/src/lib/app-config.ts` | |
| import { InjectionToken } from '@angular/core'; | |
| export const APP_VERSION = new InjectionToken<string>('app-version'); |
OlderNewer