{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/4266","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/4266/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/4266/comments","events_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/4266/events","html_url":"https://github.com/angular-ui/bootstrap/issues/4266","id":102890062,"number":4266,"title":"Cannot $provide alternate templateUrl for typeaheadMatchDirective","user":{"login":"807811b0-1373-11e5-b60b-1697f925ec7b","id":12897710,"avatar_url":"https://avatars.githubusercontent.com/u/12897710?v=3","gravatar_id":"","url":"https://api.github.com/users/807811b0-1373-11e5-b60b-1697f925ec7b","html_url":"https://github.com/807811b0-1373-11e5-b60b-1697f925ec7b","followers_url":"https://api.github.com/users/807811b0-1373-11e5-b60b-1697f925ec7b/followers","following_url":"https://api.github.com/users/807811b0-1373-11e5-b60b-1697f925ec7b/following{/other_user}","gists_url":"https://api.github.com/users/807811b0-1373-11e5-b60b-1697f925ec7b/gists{/gist_id}","starred_url":"https://api.github.com/users/807811b0-1373-11e5-b60b-1697f925ec7b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/807811b0-1373-11e5-b60b-1697f925ec7b/subscriptions","organizations_url":"https://api.github.com/users/807811b0-1373-11e5-b60b-1697f925ec7b/orgs","repos_url":"https://api.github.com/users/807811b0-1373-11e5-b60b-1697f925ec7b/repos","events_url":"https://api.github.com/users/807811b0-1373-11e5-b60b-1697f925ec7b/events{/privacy}","received_events_url":"https://api.github.com/users/807811b0-1373-11e5-b60b-1697f925ec7b/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/component:%20typeahead","name":"component: typeahead","color":"ffffff"},{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/PRs%20plz!","name":"PRs plz!","color":"02d7e1"},{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/type:%20enhancement","name":"type: enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/angular-ui/bootstrap/milestones/14","html_url":"https://github.com/angular-ui/bootstrap/milestones/Backlog","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/milestones/14/labels","id":806073,"number":14,"title":"Backlog","description":"Holds the backlog of issues and pull requests that have been triaged.","creator":{"login":"chrisirhc","id":132584,"avatar_url":"https://avatars.githubusercontent.com/u/132584?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisirhc","html_url":"https://github.com/chrisirhc","followers_url":"https://api.github.com/users/chrisirhc/followers","following_url":"https://api.github.com/users/chrisirhc/following{/other_user}","gists_url":"https://api.github.com/users/chrisirhc/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisirhc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisirhc/subscriptions","organizations_url":"https://api.github.com/users/chrisirhc/orgs","repos_url":"https://api.github.com/users/chrisirhc/repos","events_url":"https://api.github.com/users/chrisirhc/events{/privacy}","received_events_url":"https://api.github.com/users/chrisirhc/received_events","type":"User","site_admin":false},"open_issues":130,"closed_issues":133,"state":"open","created_at":"2014-09-29T01:22:44Z","updated_at":"2015-10-14T04:43:39Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-08-24T20:57:45Z","updated_at":"2015-10-15T05:13:06Z","closed_at":null,"body":"Hi, I am using `$provide` to change the `templateUrl` for the `typeaheadPopupDirective` like this:\r\n\r\n    $provide.decorator('typeaheadPopupDirective', function ($delegate) {\r\n        $delegate[0].templateUrl = 'bower_components/angular-ui-bootstrap/template/typeahead/typeahead-popup.html';\r\n        return $delegate;\r\n    });\r\n\r\nIt does not work for `typeaheadMatchDirective` because the code is built differently:\r\n\r\n      link:function (scope, element, attrs) {\r\n        var tplUrl = $parse(attrs.templateUrl)(scope.$parent) || 'template/typeahead/typeahead-match.html';\r\n        $http.get(tplUrl, {cache: $templateCache}).success(function(tplContent){\r\n           element.replaceWith($compile(tplContent.trim())(scope));\r\n        });\r\n      }\r\n\r\nIs it possible to allow a place to global override, i.e. `$provide` in my app config?"},"comment":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/comments/148283061","html_url":"https://github.com/angular-ui/bootstrap/issues/4266#issuecomment-148283061","issue_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/4266","id":148283061,"user":{"login":"wesleycho","id":1703387,"avatar_url":"https://avatars.githubusercontent.com/u/1703387?v=3","gravatar_id":"","url":"https://api.github.com/users/wesleycho","html_url":"https://github.com/wesleycho","followers_url":"https://api.github.com/users/wesleycho/followers","following_url":"https://api.github.com/users/wesleycho/following{/other_user}","gists_url":"https://api.github.com/users/wesleycho/gists{/gist_id}","starred_url":"https://api.github.com/users/wesleycho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesleycho/subscriptions","organizations_url":"https://api.github.com/users/wesleycho/orgs","repos_url":"https://api.github.com/users/wesleycho/repos","events_url":"https://api.github.com/users/wesleycho/events{/privacy}","received_events_url":"https://api.github.com/users/wesleycho/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T05:13:06Z","updated_at":"2015-10-15T05:13:06Z","body":"I have spent a bit of time thinking about this, and I am not quite sure if there is anything we can do here without a significant refactor maybe, along with breaking changes. May need to think about this some more, but because of the intermediaries involved, I am not sure there is anything we can do."}}