This project was generated with Angular CLI version 10.1.6.
This project is running on an Angular presentation server that manages HTML and Javascript code. This presentation server receives its data from another web server where a rest web service is running. This web service should be started first:
https://github.com/charroux/CorrectionWebServiceJPA
Run npm update
and ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
https://github.com/charroux/angular-http/blob/master/src/app/app.module.ts
import { HttpClientModule } from '@angular/common/http';
...
imports: [ BrowserModule, HttpClientModule ]
https://github.com/charroux/angular-http/blob/master/src/app/car.service.ts
Subsription of the Obervable: this.carService.getCarsWithObservable().subscribe(cars => this.cars = cars); in
https://github.com/charroux/angular-http/blob/master/src/app/cars/cars.component.ts
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.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.