Quickstart with Angular 2/4

Node platform

Developing web application using Angular 2/4 goes easy with Node.js platform. It does not mean that Angular based web apps can be build using Node.js, we can build with any other program management tools like Maven or Gradle. However, Node.js provides easy way of building Angular 2 application. 

First this we need to do is to make sure Node is installed in our system. The following urls will take you to the download page of Node.js for appropriate OS.



Installing Angular CLI package

Angular CLI is a command line interface for developing Angular 2 projects. The command line tool will help to create project and its components from few commands.

Let us see how to install the Angular CLI into Windows system.  


$ node –-version
$ v6.9.2

$ npm install –g @angular/cli@latest


The npm install says installing the required package in the Node environment. The parameter –g denotes install the package globally. 

In order to install Angular cli for version 2/4 we need to pass the parameter @angular/cli@latest the @latest will pull the latest version of the package. 

That's all you're good to go with Angular 2. Have fun in building :)

Comments

Popular posts from this blog

Trait, an interface in Scala

Singleton class made easy in Scala