cd backend npm install node server
This project was generated with Angular CLI version 8.1.2.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app 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. Use the --prod
flag for a production build.
https://github.com/jguyet/formation-angular/tree/new-component
Coder un nouveau Composant
ng generate component nomducomposant
TP 1 - Exemples de Binding one way et two way :
https://github.com/jguyet/formation-angular/tree/component-binding-1
TP 2 - Exemples de Binding entre composant parent/enfant :
https://github.com/jguyet/formation-angular/tree/component-binding-2
https://github.com/jguyet/formation-angular/tree/directives
Run ng test
to execute the unit tests via Karma.
https://github.com/jguyet/formation-angular/tree/modules
Run ng e2e
to execute the end-to-end tests via Protractor.
https://github.com/jguyet/formation-angular/tree/pipes
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
https://github.com/jguyet/formation-angular/tree/services
Coder un nouveau service
ng generate service nomduservice
https://github.com/jguyet/formation-angular/tree/routing
Pour utiliser le RoutingModule vous avez deux façons de l'installer :
- en choisissant son importation à la generation d'un module à l'aide d'angular cli avec le flag
--routing
- en le créant manuellement.
Explication d'un observable et utilisation dans le tp suivant.
Création d'un service qui communiquera avec une api fourni.
Création d'une nouvelle page d'insertion de nouveaux assets.
Utilisation du service créé précedement.
Formation angular proposé par Jérémy Guyet & Ambient-it.