Quantcast
Channel: Tech Tutorials
Viewing all articles
Browse latest Browse all 938

How to Setup Angular

$
0
0

This article shows how to install Angular and what are the prerequisites to create your first Angular project.

Install Node.js and NPM

Ensure that you have installed Node.js and an NPM package manager.

Angular requires Node.js to run applications.

Angular, the Angular CLI, and Angular apps depend on features and functionality provided by libraries that are available as npm packages. To download and install npm packages, you must have an npm package manager. Note that a NPM client is installed with Node.js by default. So you don’t need to install NPM separately.

Refer this article How to Install Node.js and NPM in Windows to see how to install Node.js

Installing Angular CLI

Angular CLI is a command line interface for Angular which is a convenient tool to create and manage projects. Using CLI you can create an Angular project that follows the best practices of Angular and gives you a project structure as suggested by Angular.

Angular CLI also performs a variety of ongoing development tasks such as testing, bundling, and deployment.

To install the Angular CLI globally open the command prompt and run the following command.


npm install -g @angular/cli

To verify that installation is done correctly you can run the following command.


ng –version

It should show the installed version of packages.

With that your Angular environment setup is complete and you can start creating your first Angular app.

That's all for this topic How to Setup Angular. If you have any doubt or any suggestions to make please drop a comment. Thanks!


Related Topics

  1. Angular Project Structure With File Description
  2. Angular Application Bootstrap Process
  3. How to Pass Command Line Arguments in Eclipse
  4. Reflection in Java
  5. Spring Example Program Using Automatic Configuration

You may also like-

  1. Serialization in Java
  2. Object Cloning in Java
  3. Nested Class And Inner Class in Java
  4. Garbage Collection in Java
  5. String Vs StringBuffer Vs StringBuilder in Java
  6. Array in Java
  7. Lazy Initializing Spring Beans
  8. Introduction to Hadoop Framework

Viewing all articles
Browse latest Browse all 938

Trending Articles