This repository contains a set of standalone Angular learning projects. Each top-level folder is a self-contained Angular application or demo used to explore a specific topic in the framework. Clone the repository and open any folder to run the example locally.
- Node.js (LTS recommended)
- npm or yarn
- (optional) @angular/cli installed globally:
npm install -g @angular/cli
git clone https://github.com/zhenchai00/angular-tutorial-project.git
cd angular-tutorial-project- Open the folder for the example you want:
cd 02-components - Install dependencies:
npm install - Start the dev server:
npm startorng serve --open --port 4201Ifnpm startis not defined, usenpx ng serve --openor check package.json for the proper script. Use--portto avoid port conflicts.
- If Angular CLI version mismatches cause errors, run
npm installinside the project to use the local CLI or usenpx @angular/cli@<version>. - For CORS or API issues, check the demo’s README or environment files in the project folder.
- If a folder is not a runnable app, it may contain notes or exercises. Check the folder README.