Skip to content

Instantly share code, notes, and snippets.

View javebratt's full-sized avatar
🏠
Working from home

Jorge Vergara javebratt

🏠
Working from home
View GitHub Profile
@javebratt
javebratt / example.interceptor.ts
Created July 18, 2022 21:49
Example of injector token in nx monorepo
// 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');