{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/13441","labels_url":"https://api.github.com/repos/angular/angular.js/issues/13441/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/13441/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/13441/events","html_url":"https://github.com/angular/angular.js/issues/13441","id":120185151,"number":13441,"title":"$templateRequestProvider httpOptions are not used when downloading templates","user":{"login":"bananer","id":460062,"avatar_url":"https://avatars.githubusercontent.com/u/460062?v=3","gravatar_id":"","url":"https://api.github.com/users/bananer","html_url":"https://github.com/bananer","followers_url":"https://api.github.com/users/bananer/followers","following_url":"https://api.github.com/users/bananer/following{/other_user}","gists_url":"https://api.github.com/users/bananer/gists{/gist_id}","starred_url":"https://api.github.com/users/bananer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bananer/subscriptions","organizations_url":"https://api.github.com/users/bananer/orgs","repos_url":"https://api.github.com/users/bananer/repos","events_url":"https://api.github.com/users/bananer/events{/privacy}","received_events_url":"https://api.github.com/users/bananer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-03T14:37:53Z","updated_at":"2015-12-03T16:14:28Z","closed_at":null,"body":"With angular 1.5.0 beta2 have the following config block:\r\n```\r\napp.config(function($templateRequestProvider) {\r\n    $templateRequestProvider.httpOptions({\r\n        params: {\r\n            '_': 'some-build-id'\r\n        }\r\n    });\r\n});\r\n```\r\n\r\nI expect this to add a parameter to the request when downloading any template.\r\n\r\nThis is not the case, no parameter is added. I checked with a debugger a bit and it seems like $templateRequest is never used to download templates, apparently it goes directly to $http.\r\n\r\nMaybe I'm misunderstanding what this provider is used for, but I was under the impression i can modify the behaviour when angular needs to request a template file."},"comment":{"url":"https://api.github.com/repos/angular/angular.js/issues/comments/161696148","html_url":"https://github.com/angular/angular.js/issues/13441#issuecomment-161696148","issue_url":"https://api.github.com/repos/angular/angular.js/issues/13441","id":161696148,"user":{"login":"Narretz","id":1153097,"avatar_url":"https://avatars.githubusercontent.com/u/1153097?v=3","gravatar_id":"","url":"https://api.github.com/users/Narretz","html_url":"https://github.com/Narretz","followers_url":"https://api.github.com/users/Narretz/followers","following_url":"https://api.github.com/users/Narretz/following{/other_user}","gists_url":"https://api.github.com/users/Narretz/gists{/gist_id}","starred_url":"https://api.github.com/users/Narretz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Narretz/subscriptions","organizations_url":"https://api.github.com/users/Narretz/orgs","repos_url":"https://api.github.com/users/Narretz/repos","events_url":"https://api.github.com/users/Narretz/events{/privacy}","received_events_url":"https://api.github.com/users/Narretz/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T16:14:28Z","updated_at":"2015-12-03T16:14:28Z","body":"What kind of templates are we talking about? Directive templates? ng-includes? route templates?"}}