Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

docs/test($templateRequest): minor docs improvement and tests clean-up #13199

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/ng/templateRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ var $compileMinErr = minErr('$compile');
* @ngdoc provider
* @name $templateRequestProvider
* @description
* Used to configure the Accept header that is sent to the server when requesting a template.
* Used to configure the options passed to the {@link $http} service when making a template request.
*
* For example, it can be used for specifying the "Accept" header that is sent to the server, when
* requesting a template.
*/
function $TemplateRequestProvider() {

Expand All @@ -16,10 +19,10 @@ function $TemplateRequestProvider() {
* @ngdoc method
* @name $templateRequestProvider#httpOptions
* @description
* The options to be passed to the $http service when making the request.
* You can use this to override options such as the Accept header for template requests.
* The options to be passed to the {@link $http} service when making the request.
* You can use this to override options such as the "Accept" header for template requests.
*
* The {$templateRequest} will set the `cache` and the `transformResponse` properties of the
* The {@link $templateRequest} will set the `cache` and the `transformResponse` properties of the
* options if not overridden here.
*
* @param {string=} value new value for the {@link $http} options.
Expand Down
4 changes: 2 additions & 2 deletions test/ng/templateRequestSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('$templateRequest', function() {

function someTransform() {}

module(function($templateRequestProvider, $httpProvider) {
module(function($templateRequestProvider) {

// Configure the template request service to provide specific headers and transforms
$templateRequestProvider.httpOptions({
Expand All @@ -58,7 +58,7 @@ describe('$templateRequest', function() {

var httpOptions = {};

module(function($templateRequestProvider, $httpProvider) {
module(function($templateRequestProvider) {
$templateRequestProvider.httpOptions(httpOptions);
});

Expand Down