On this page
Improve this Doc View Source $templateRequestProvider
- $templateRequest
 - provider in module ng
 
Overview
Used to configure the options passed to the $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.
Methods
httpOptions([value]);
The options to be passed to the
$httpservice when making the request. You can use this to override options such as the "Accept" header for template requests.The
$templateRequestwill set thecacheand thetransformResponseproperties of the options if not overridden here.Parameters
Param Type Details value (optional)stringnew value for the
$httpoptions.Returns
stringselfReturns the
$httpoptions when used as getter and self if used as setter.
© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
 https://code.angularjs.org/1.6.9/docs/api/ng/provider/$templateRequestProvider