User-Nucleus: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „Kategorie:Angular = Links = * Services-Nucleus * User-Nucleus = Interface User = <pre> mkdir src/user ng g interface user/user </pre> <pre> expo…“) |
|||
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt) | |||
Zeile 7: | Zeile 7: | ||
= Interface User = | = Interface User = | ||
<pre> | <pre> | ||
mkdir src/ | mkdir src/users | ||
ng g interface | ng g interface users/user | ||
</pre> | </pre> | ||
<pre> | <pre> | ||
Zeile 38: | Zeile 38: | ||
</pre> | </pre> | ||
* Unterschiede: status->isActive +roleName | * Unterschiede: status->isActive +roleName | ||
= User-Factory zur Konvertierung = | = User-Factory zur Konvertierung = | ||
<pre> | <pre> | ||
Zeile 44: | Zeile 45: | ||
</pre> | </pre> | ||
= Komponente zur Listenanzeige = | |||
<syntaxhighlight lang="bash"> | |||
ng g component users/user-list | |||
</syntaxhighlight> | |||
* [[Services-Nucleus]] | * [[Services-Nucleus]] |
Aktuelle Version vom 17. Januar 2022, 15:03 Uhr
Links[Bearbeiten]
Interface User[Bearbeiten]
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[Bearbeiten]
mkdir src/user ng g class user/user-factory
Komponente zur Listenanzeige[Bearbeiten]
ng g component users/user-list