Taking my initial steps towards Angular 2.0.
First thing is to set up the right environment for the development.
My index.html
If you are already using Visual Studio Code as an IDE, you may want to explore how they recommend setting up Angular. I personally found their installation guide painless and feature-rich. I have never walked through an official Angular installation before due to being drenched in jQuery projects. This guide was simple enough to give me a good beginners understanding.
You have angular-cli wich is a good starter point. It will set you everything up according to best practices.
npm install
in the root project (it will create your node_modules
from the dependencies mentioned in package.json
file, should have those files as a start)
Simple way to set up your first Angular 2 Application.
Download the zip version here.firstAngular2App
Extract it to your destination folder. Assume D:
Open your command prompt(ensure that all required softwares are installed).
Navigate it to the folder. Use the command cd D:\firstAngular2App
Executre npm install
Once it is done use npm start
This way you have your first Angular2 appliction up and running.