Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Aphorismen
Applications
Business Economics & Admin.
My Computers
Cooking
Devices
Folders
Food
Hardware
Infos
Software Development
Sports
Operation Instructions
Todos
Test
Help
Glossary
Community portal
adaptions
Sidebar anpassen
Wiki RB4
Search
Search
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Angular
(section)
Page
Discussion
English
Read
Edit
View history
Toolbox
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Angular Framework Modules=== * BrowserModule * Core ** @Component * [[Angular#FormsModule|Template Driven Forms (FormsModule)]] * [[Angular#HTTPModule|HTTPModule]] * [[Angular#Reactive_Forms|Reactive Forms (ReactiveFormsModule)]] * NgModule * see https://angular-training-guide.rangle.io/forms =====Template Driven Forms===== import {FormsModule} from "@angular/forms"; =====Reactive Forms===== * see [https://angular.io/guide/reactive-forms official documentation] * example see <code>menu.component.ts</code> and <code>menu.component.html</code> or <code>configuration.component</code> import {ReactiveFormsModule} from "@angular/forms"; ** <code>[formGroup]</code> directive ** <code>FormBuilder.group()</code> ** <code>setValue() or patchValue()</code> ** subscribe if needed ====HTTPModule==== * usage import { HttpClientModule } from '@angular/common/http'; import { HttpClient } from '@angular/common/http'; import { Observable, throwError } from 'rxjs'; import { catchError, retry } from 'rxjs/operators'; * there are multiple overloads of <code>get()</code> * observables in general can emit multiple values but an observable returned by the get() method only emits once * All [[JavaScript/JScript#RxJs|observables]] returned from HttpClient methods are cold by design. Calling <code>subscribe()</code> triggers execution of the observable and causes HttpClient to compose and send the HTTP request to the server. * '''Completion''' or '''Error''' are mutually exclusive. * resources ** https://www.techiediaries.com/angular-11-tutorial-example-rest-crud-http-get-httpclient/
Summary:
Please note that all contributions to Wiki RB4 may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Uwe Heuer Wiki New:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Toggle limited content width