Skip to content

Khalil-IT/project1-from-docs-v17

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f321cc9 · Oct 2, 2024

History

2 Commits
Aug 3, 2024
Aug 3, 2024
Aug 3, 2024
Aug 3, 2024
Oct 2, 2024
Aug 3, 2024
Aug 3, 2024
Aug 3, 2024
Aug 3, 2024
Aug 3, 2024
Aug 3, 2024

Repository files navigation

Project1FromDocsV17

source Link source Link

Development server

ng generate environments

  • make sure that : import { environment } from './../environments/environment';

    environment{{env | json}}

  • The build command uses environment.ts as the build target when no environment is specified

Configure target-specific file replacements

  • angular.json

    "configurations": {
    "development": {
    "fileReplacements": [
        {
          "replace": "src/environments/environment.ts",
          "with": "src/environments/environment.development.ts"
        }
      ],
      …
    
  • This means that when you build your development configuration with ng build --configuration development, the src/environments/environment.ts file is replaced with the target-specific version of the file, src/environments/environment.development.ts.

  • we learn :

    • ng build --configuration=production

    • ng build --configuration=development

    • ng serve --configuration=production

    • ng serve --configuration=development

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published