angularjs - Get template associated with a controller inside that controller itself -
is there injectable providers available controllers partials template on controller same applied. like <div ng-controller="testcontroller"> <div> angular.module("app") .controller("testcontroller",function([$templateprovider]){ }); i want <div ng-controller="testcontroller"> <div> element inside testcontroller is there template built-in providers available in angularjs?? we can use $rootelement . giving complete ng-app element. can use queryselector partials $rootelement . the root element of angular application. either element ngapp declared or element passed angular.bootstrap. element represents root element of application. location application's $injector service gets published, , can retrieved using $rootelement.injector().