Skip to content

Instantly share code, notes, and snippets.

@seangwright
Created August 18, 2018 03:03
Show Gist options
  • Save seangwright/93c51a85c7fe33e01262edb0baa7fb59 to your computer and use it in GitHub Desktop.
Save seangwright/93c51a85c7fe33e01262edb0baa7fb59 to your computer and use it in GitHub Desktop.
blog-best-way-to-use-angular-environment--ienvironment.ts
export type LogLevel = 'debug' | 'info' | 'warn' | 'error';
export interface IEnvironment {
production: boolean;
// Enables use of ng.profiler.timeChangeDetection(); in browser console
enableDebugTools: boolean;
logLevel: LogLevel;
apiUrl: string;
apiHost: string;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment