Angular2 tutorial: Tour of Heroes in plain JavaScript.
Official angular.io tutorial page still contains no tutorial for plain JavaScript, so trying to convert typescript tutorial material to javascript material.
Node.js and npm are essential to Angular development.
Get it now if it's not already installed on your machine.Verify that you are running at least node v4.x.x
and npm 3.x.x
by running node -v
and npm -v
in a terminal/console window.
Older versions produce errors.
Install the npm packages described in the package.json
and verify that it works:
Attention Windows Developers: You must run all of these commands in administrator mode.
npm install
npm start
npm start
- runs the compiler and a server at the same time, both in "watch mode".npm run lite
- runs the lite-server, a light-weight, static file server, written and maintained by John Papa and Christopher Martin with excellent support for Angular apps that use routing.