How to start a new project with the latest version of AngularJS?

2.1k Views Asked by At

What's the best way to start a new project with the latest version of AngularJS (currently 1.7.2)?

The official documentation suggests to clone the Seed App project template, but that uses the old 1.5.11 version on AngularJS.

Even yarn AngularJS starter kit (yarn create angular-app my-app) seem to include deprecated packages and then fails at the node-sass postinstall script.

I know new projects should use the latest version of Angular, but this is only for educational purposes.

2

There are 2 best solutions below

0
Marco Lackovic On BEST ANSWER

You can create a minimalist AngularJS project with Yarn by running:

yarn init
yarn add angular
yarn add angular-route
yarn add gulp --dev
yarn add gulp-concat --dev

and then you will have to create a gulpfile.js with the build task.

Alternatively, you can start from angularjs-starter-kit.

0
Marco Lackovic On

1) Clone the Seed App project template;

2) Change the dependencies in bower.json to:

"angular": "1.7.x",
"angular-route": "1.7.x",
"angular-loader": "1.7.x",
"angular-mocks": "1.7.x",