Merge pull request #8634 from wingyplus/angular-http-param-serializer

angularjs: Support HttpParamSerializer interface
This commit is contained in:
Masahiro Wakame
2016-03-26 20:42:04 +09:00
2 changed files with 15 additions and 0 deletions
+7
View File
@@ -1110,3 +1110,10 @@ function doBootstrap(element: Element | JQuery, mode: string): ng.auto.IInjector
debugInfoEnabled: false
});
}
function testIHttpParamSerializerJQLikeProvider() {
let serializer: angular.IHttpParamSerializer;
serializer({
a: "b"
});
}
+8
View File
@@ -1916,4 +1916,12 @@ declare namespace angular {
}
}
/**
* $http params serializer that converts objects to strings
* see https://docs.angularjs.org/api/ng/service/$httpParamSerializer
*/
interface IHttpParamSerializer {
(obj: Object): string;
}
}