16.1.3 • Published 9 months ago

@ngx-env/core v16.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

@ngx-env/core

npm version

Easily inject environment variables into your Angular applications

Quick start

  1. Add @ngx-env to your CLI project
ng add @ngx-env/builder
  1. Define Environment Variables in .env
NG_APP_ENABLE_ANALYTICS=false
NG_APP_VERSION=$npm_package_version
  1. Run CLI commands
npm start
NG_APP_BRANCH_NAME=`git branch --show-current` npm run build
  1. Use the env pipe
npm install @ngx-env/core
import { NgxEnvModule } from "@ngx-env/core";

@NgModule({
  declarations: [FoooterComponent],
  imports: [CommonModule, NgxEnvModule],
})
export class FooterModule {}
{{ 'process.env.NG_APP_ENV' | env }}
{{ 'NG_APP_ENV' | env }}
{{ 'NG_APP_BRANCH_NAME' | env }}

License

MIT © Chihab Otmani

16.1.3

9 months ago

16.1.1

11 months ago

16.1.0

11 months ago

16.0.0

12 months ago

16.1.2

11 months ago

15.2.0

1 year ago

15.2.1

1 year ago

15.0.0

1 year ago

15.0.1

1 year ago

2.1.1

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.1.5

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago