Hands-On Data Structures and Algorithms with JavaScript
上QQ阅读APP看书,第一时间看更新

Creating an Angular application

Before moving on to the individual use cases, we will first create the Angular application which will work as the base for our examples.

Follow the given commands to get up and running with the application:

  1. Install the Angular CLI:
npm install -g @angular/cli
  1. Create a new project in the folder of your choice by running the following command:
ng new <project-name>
  1. After these two steps, you should be able to see the new project created and all the corresponding node modules installed and ready to go.
  2. To run your application, run the following command from a Terminal:
ng serve