fix(http): expose jsonpFactory for AoT compilation (#10730)
This commit is contained in:
parent
5b99b8c18a
commit
203b2ba637
|
@ -334,7 +334,10 @@ export const JSONP_PROVIDERS: any[] = [
|
|||
{provide: JSONPBackend, useClass: JSONPBackend_},
|
||||
];
|
||||
|
||||
function jsonpFactory(jsonpBackend: JSONPBackend, requestOptions: RequestOptions) {
|
||||
/**
|
||||
* @experimental
|
||||
*/
|
||||
export function jsonpFactory(jsonpBackend: JSONPBackend, requestOptions: RequestOptions): Jsonp {
|
||||
return new Jsonp(jsonpBackend, requestOptions);
|
||||
}
|
||||
|
||||
|
|
|
@ -108,6 +108,9 @@ export declare abstract class JSONPConnection implements Connection {
|
|||
abstract finished(data?: any): void;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare function jsonpFactory(jsonpBackend: JSONPBackend, requestOptions: RequestOptions): Jsonp;
|
||||
|
||||
/** @experimental */
|
||||
export declare class JsonpModule {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue