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>

See more

Last updated