Remember, you’ll need to do an npm install on each project to install the
dependencies and get it working. Sometimes you may also need to re-install the CLI
using the following two commands:
npm uninstall --save-dev angular-cli
npm install --save-dev @angular/cli@latest
And sometimes you may get the “Environment configuration does not contain
environment Source entry” error. This is fixed by editing the file angular-cli.json and
changing the setting from this
"environments": {
"source": "environments/environment.ts",
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}
to this:
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}
Angular and Naming
The purpose of AngularJS and Angular 4 is to create single page applications (SPAs).
I’ll soon talk about how web applications have evolved from server-side applications to
single page applications. Angular gives us a way of writing SPAs, but there’s now more
than one version of Angular. As of the time of writing, there are three versions:
• The original Angular, which runs on JavaScript
• Angular 2, which runs on TypeScript
• Angular 4, which also runs on TypeScript
dependencies and get it working. Sometimes you may also need to re-install the CLI
using the following two commands:
npm uninstall --save-dev angular-cli
npm install --save-dev @angular/cli@latest
And sometimes you may get the “Environment configuration does not contain
environment Source entry” error. This is fixed by editing the file angular-cli.json and
changing the setting from this
"environments": {
"source": "environments/environment.ts",
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}
to this:
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}
Angular and Naming
The purpose of AngularJS and Angular 4 is to create single page applications (SPAs).
I’ll soon talk about how web applications have evolved from server-side applications to
single page applications. Angular gives us a way of writing SPAs, but there’s now more
than one version of Angular. As of the time of writing, there are three versions:
• The original Angular, which runs on JavaScript
• Angular 2, which runs on TypeScript
• Angular 4, which also runs on TypeScript
Comments
Post a Comment