angular_konspekt
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| angular_konspekt [2018/03/23 16:38] – [Components] kalaschnikow | angular_konspekt [2018/04/23 15:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Angular Konspekt ====== | ||
| + | Meine Notizen zu Angular. | ||
| + | |||
| + | ===== Ein neues Projekt aufsetzen ===== | ||
| + | |||
| + | Es gibt mehrere Wege ein neues Projekt aufzusetzen: | ||
| + | |||
| + | * Mit Angular CLI (klassisch) | ||
| + | * Mit Hilfe von dem IntelliJ IDEA Assistenten | ||
| + | |||
| + | ==== Mit Angular CLI ==== | ||
| + | Ein neues Projekt aufsetzen([[https:// | ||
| + | <code bash> | ||
| + | ng new PROJECT-NAME | ||
| + | </ | ||
| + | |||
| + | Wenn man danach mit IntelliJ entwickeln will, dann muss man im IntelliJ auch ein neues (IntelliJ-)Projekt erstellen: '' | ||
| + | |||
| + | ==== Mit IntelliJ IDEA Assistenten ==== | ||
| + | |||
| + | - Menü '' | ||
| + | - Im Dialog '' | ||
| + | - '' | ||
| + | - Button '' | ||
| + | - Projektnamen eingeben | ||
| + | - Node Interpreter wählen ( z.B. ''/ | ||
| + | - Angular CLI wählen ( aktuell bei mir ''/ | ||
| + | - Button '' | ||
| + | |||
| + | |||
| + | |||
| + | ===== Server starten ===== | ||
| + | |||
| + | Server starten ([[https:// | ||
| + | <code bash> | ||
| + | cd PROJECT-NAME | ||
| + | ng serve | ||
| + | </ | ||
| + | |||
| + | ===== Modules ===== | ||
| + | <code javascript> | ||
| + | @NgModule | ||
| + | </ | ||
| + | ===== Components ===== | ||
| + | <code javascript> | ||
| + | @Component | ||
| + | </ | ||
| + | |||
| + | ===== Directives ===== | ||
| + | <code javascript> | ||
| + | @Directive | ||
| + | </ | ||
| + | ===== Pipes ===== | ||
| + | |||
| + | |||
| + | |||
