User-Nucleus
Version vom 17. Januar 2022, 15:03 Uhr von Hamatoma (Diskussion | Beiträge) (→User-Factory zur Konvertierung)
Links
Interface User
mkdir src/users ng g interface users/user
export interface User { id: number; role: number; roleName: string; isActive: boolean; name: string; email: string; shortname: string; displayName: string; info: string; groups: string; options: string; } export interface UserRaw { id: number; role: number; status: number; name: string; email: string; shortname: string; displayName: string; info: string; groups: string; options: string; }
- Unterschiede: status->isActive +roleName
User-Factory zur Konvertierung
mkdir src/user ng g class user/user-factory
Komponente zur Listenanzeige
ng g component users/user-list