This project was generated with Angular CLI version 16.1.1.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The application will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
https://github.com/worganic/worganic-tab-v2024.git npm install cd .\worganic-tab-v2024
ng serve
git branch : WorganicTabV2024-v2-routing
-
Création de la nouvelle branche $ git checkout -b "WorganicTabV2024-v2-routing"
-
Création de repertoire du project component : src/app... : /component
-
Création des components : ~ ng g c component/home --skip-import
~ ng g c component/abouts --skip-import
~ ng g c component/design --skip-import ~ ng g c component/404 --skip-import
~ ng g c component/Pagenotfound --skip-import -
Modification des components pour les passer en mode Standalone.
@Component --> standalone: true
-
Ajout router dans le component app app.component.html -> app.component.ts -> @Component --> imports: [RouterOutlet, RouterLink]
-
Modification du routing main.ts pour inclure home, design, abouts et Pagenotfound
-
Lancement du projet : ~ ng server
-
GitHub : git add . git commit -m "WorganicTabV2024-v2-routing - v0" git push --set-upstream origin WorganicTabV2024-v2-routing
Nous avons maintenant : index.html -> app.component (avec le menu) -> -> home (page simple affiché par default et aucune url spécifique appelé) -> design (page simple - http://localhost:4200/design) -> abouts (page simple - http://localhost:4200/abouts) -> Pagenotfound (si l'url n'est pas reconnus par le routing)
Avant -> V1 -> Installation project ........ Après -> v3 -> Mise en place de la structure des pages.
created by Johann Loreau create at 2024/01/20 15h30 Le project évolura suivant les remarques et conseils des visiteurs.