


To add Angular 2 and its dependencies to your projects, you have to add some dependencies in your NPM configuration file : You will have an empty NPM configuration file : NPM is distributed with Node.js, which is an asynchronous event driven JavaScript runtime, designed to build scalable network applications.Īngular 2 and its dependencies are delivered through NPM, so you need to add the NPM configuration file in your project, package.json. NPM, for Node Package Manager, is a utility that aids JavaScript open source package installation, version and dependency management. This file tell the compiler about the libraries you load.Īdd a NPM configuration file What is NPM ? Many JavaScript libraries, such as jQuery, extend the JavaScript environment with syntax and features that the TypeScript compiler doesn't recognize natively. If you want more information about this file, you can read the documentation : įor our project, we have to specify where the tsc can find our TypeScript files and where we want it generates the JavaScript files, and some other settings.

You can find the details of this section here : The compilerOptions section is optional, if its null default values will be use. This is the default content when you add the tsconfig.json file to your project :
