1. Create an application

In this section we will create our application with the Angular CLI and discuss and examine its parts.

  • Change directory into the new app's directory and open it with VS Code

1. Create a new Angular CLI app

  • Run the following command to generate a new Angular application

ng new angular-and-ngrx-demo-app --style scss --prefix app

Change into the new app's directory and open it with VS Code

cd angular-and-ngrx-demo-app
code .

2. Run the app

  • Launch the app with the following command ('s' is short for serve)

ng s

Look at output

3. Review the structure and key files

  • package.json

  • index.html

  • main.ts

  • app.module.ts

  • app.component.ts

StackBlitz Link

Last updated