From a5ef610a09b1532481365e0877bc34893bfde597 Mon Sep 17 00:00:00 2001 From: Teriuihi Date: Sat, 5 Apr 2025 18:29:42 +0200 Subject: [PATCH] Add instructions for creating a new Angular component Expanded setup guidelines with steps to generate a new component in Angular. Detailed instructions include modifications to the component, app module, and routes for proper integration. --- frontend/setup.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/setup.md b/frontend/setup.md index 8aae83d..da3a4bc 100644 --- a/frontend/setup.md +++ b/frontend/setup.md @@ -1,2 +1,11 @@ - https://nodejs.org/en - npm install -g @angular/cli + +# New page + +- ng generate component +- Go to the component (.component.ts) +- add standalone: false to the @Component +- remove imports: [] from that same block +- Go to app.module.ts and add the new page in declaration +- Add the new file to routes and give it a path (like 'new_page')