Http
The directive is a local non-state manager that dispatches requests your http service listen to and selects data out from the response.
Creating Get Request
An GET request example in COMPONENT.template.html.
<ng-container *http="let status get 'https://...'">
{{ status }}
</ng-container>Also with options.
<ng-container *http="let status get 'https://...' with options">
{{ status }}
</ng-container>Creating Post Request
An POST request example in COMPONENT.template.html.
<ng-container *http="let status post 'https://...' send body">
{{ status }}
</ng-container>Also with options.
<ng-container *http="let status post 'https://...' send body with options">
{{ status }}
</ng-container>Creating Delete Request
An DELETE request example in COMPONENT.template.html.
Also with options.
Creating Head Request
An HEAD request example in COMPONENT.template.html.
Also with options.
Creating Options Request
An OPTIONS request example in COMPONENT.template.html.
Also with options.
Creating Patch Request
An PATCH request example in COMPONENT.template.html.
Also with options.
Creating Put Request
An PUT request example in COMPONENT.template.html.
Also with options.
Last updated