Services-Nucleus
Version vom 17. Januar 2022, 13:58 Uhr von Hamatoma (Diskussion | Beiträge) (→User-Service erstellen)
Links
User-Service erstellen
cd /home/ws/angular/Nucleus mkdir -p src/app/users ng g service users/user-rest
REST-Service erstellen
cd /home/ws/angular/Nucleus mkdir src/app/service ng g service service/rest
- Service verwendet HttpClientModule, dieses importieren: app.module.ts:
... import { HttpClientModule } from '@angular/common/http'; ... imports[ HttpClientModule, ...