Project Setup

Install the Angular CLI globally

npm install -g @angular/cli@latest

Basic workflow

Make sure, you do create that app by also adding the --no-strict flag to the ng new command – otherwise you will run into issues later on.

ng new my-first-project --no-strict
cd my-first-project
ng serve --open

Run dev server

npm run dev:ssr

One important note: All the course code will only work if you are NOT using “strict mode” see the “First App” lecture in this module. Strict mode forces you to write more verbose code in some places (especially when it comes to class properties). If you enabled it by accident, you can also disable it by setting strict: false in your tsconfig.json file.

Was this page helpful?