This is the archived documentation for Angular v5. Please visit angular.io to see documentation for the current version of Angular.

JSONPConnection

npm Package @angular/http
Module import { JSONPConnection } from '@angular/http';
Source http/src/backends/jsonp_backend.ts

Deprecation Notes

use @angular/common/http instead

Interface Overview

      
      interface JSONPConnection extends Connection implements Connection { 
  readyState: ReadyState
  request: Request
  response: Observable<Response>
  finished(data?: any)
}
    

Description

Base class for an in-flight JSONP request.

Members

      
      readyState: ReadyState
    

The ReadyState of this request.


      
      request: Request
    

The outgoing HTTP request.


      
      response: Observable<Response>
    

An observable that completes with the response, when the request is finished.


      
      finished(data?: any)
    

Callback called when the JSONP request completes, to notify the application of the new data.