import { InjectionToken } from '@angular/core' ; import { environment } from '../../../environments/environment' ; export const API_URL = new InjectionToken < string > ( 'Base API Url' , { factory : ( ) => environment . api } ) ;