Before we implement any trees, let's set up a base application, which we can use in our subsequent examples.
Like we did in previous chapters, we will be creating an Angular application using the Angular CLI using the following steps:Â
- Install the Angular CLI using the following command (if not done already):
npm install -g @angular/cli
- Create the new project in the folder of your choice by running the following command:
ng new <project-name>
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.
- To run your application, run the following command from Terminal:
ng serve