NGXF
  • 🚀Introduction
  • Get Started
    • Why
    • Installation
  • Concepts
    • Introduction
  • Features
    • Activated Route
    • Call
    • Init
    • Lazy
    • Keep Alive
    • Timeout
    • Track By Key
    • Repeat
    • Virtual Scroll
  • Server Interaction
    • Async
    • Cookies
    • Http
    • Socket.IO
  • Hooks
    • State Hook
    • Effect Hook
    • Reducer Hook
  • Recompose
    • Compose
  • API
    • NgxfModule
    • HttpDirective
    • RouteDirective
    • InitDirective
    • ComposeDirective
    • ReturnDirective
    • TimeoutDirective
    • CookiesDirective
    • AsyncDirective
    • LazyDirective
    • CallPipe
  • Recipes
    • Caching
    • Style Guide
  • Community
    • FAQ
    • Contributing
Powered by GitBook
On this page
  • Selectors
  • Context
  • Properties
  • Example
  1. API

HttpDirective

Selectors

[http]

Context

interface RouteContext {
    $implicit: ActivatedRoute;
    snapshot: ActivatedRouteSnapshot;
    url: UrlSegment[];
    params: Params;
    queryParams: Params;
    fragment: string;
    data: Data;
    outlet: string;
    component: Type<any> | string;
    routeConfig: Route;
    root: ActivatedRoute;
    parent: ActivatedRoute | null;
    firstChild: ActivatedRoute | null;
    children: ActivatedRoute[];
    pathFromRoot: ActivatedRoute[];
    paramMap: ParamMap;
    queryParamMap: ParamMap;
}

Properties

Property

Description

@Input()

httpGet: string

@Input()

httpHead: string

@Input()

httpJsonp: string

@Input()

httpOptions: string

@Input()

httpPatch: string

@Input()

httpPost: string

@Input()

httpPut: string

@Input()

httpSend: any

@Input()

httpCallback: string

@Input()

httpWith: any

Example

<ng-container *http="let status get 'https://api.domain.example/api/status'">
  {{ status }}
</ng-container>
PreviousNgxfModuleNextRouteDirective

Last updated 6 years ago

See more