Practical Angular 2 PDF
This work will present you the new, totally rewritten, version of the Angular framework.
Almost all concepts from version 1.0 are now obsolete and new techniques are being used
in Angular 2.0 to provide a more modern and dynamic framework.
In this context, there are two possible situation for the readers. The first is for those that
already know and use Angular since its 1.0 version, and that are looking for a way to
continue developing with this framework. The second is for those who does not know
Angular and want to learn it.
For those that never worked with the Angular framework, learning the version 2.0 will be
a simple task, since the old concepts will not be in the way of the new ones. For those that
already know Angular 1.0, it will require some patience to understand the large changes to
the framework. It is best if the developer think about Angular 2 as a new framework.
Before the we approach the Angular 2 it is necessary to review some vital technologies to
the libraries in our project, that will be installed with Node’s package manager npm.
If you use Windows, install Node via the link http://www.nodejs.org. Download and
install it and leave the npm option selected. . Besides Node, it is useful to install GIT too,
available here: https://git-scm.com/.
In Linux, we can use the package manager apt-get to install everything that we need with
the following line:
After installing all the necessary packages, it is necessary to creat a link to the node word
as the following line:
1.1.2 Web server
As the web server we will use the live-server package. This server, written in Node,
updates the page automatically when there are changes to the source code, which is
helpful to the learning. To install it, open a shell and type the following command:
In this command, the -g parameter indicates that the package will be installed as a global
variable. This way you can use it anywhere on the file system.