8
8
* use, and will default to the most recent one ($templateRequest on Angular
9
9
* versions starting from 1.3, $http otherwise).
10
10
*/
11
- function $ TemplateFactoryProvider( ) {
11
+ function TemplateFactoryProvider ( ) {
12
12
var shouldUnsafelyUseHttp = angular . version . minor < 3 ;
13
13
14
14
/**
@@ -45,7 +45,7 @@ function $TemplateFactoryProvider() {
45
45
* Service. Manages loading of templates.
46
46
*/
47
47
this . $get = [ '$http' , '$templateCache' , '$injector' , function ( $http , $templateCache , $injector ) {
48
- return new $ TemplateFactory( $http , $templateCache , $injector , shouldUnsafelyUseHttp ) ; } ] ;
48
+ return new TemplateFactory ( $http , $templateCache , $injector , shouldUnsafelyUseHttp ) ; } ] ;
49
49
}
50
50
51
51
@@ -60,7 +60,7 @@ function $TemplateFactoryProvider() {
60
60
* @description
61
61
* Service. Manages loading of templates.
62
62
*/
63
- function $ TemplateFactory( $http , $templateCache , $injector , shouldUnsafelyUseHttp ) {
63
+ function TemplateFactory ( $http , $templateCache , $injector , shouldUnsafelyUseHttp ) {
64
64
65
65
/**
66
66
* @ngdoc function
@@ -161,6 +161,6 @@ function $TemplateFactory($http, $templateCache, $injector, shouldUnsafelyUseHtt
161
161
this . fromProvider = function ( provider , params , locals ) {
162
162
return $injector . invoke ( provider , null , locals || { params : params } ) ;
163
163
} ;
164
- } ;
164
+ }
165
165
166
- angular . module ( 'ui.router.util' ) . provider ( '$templateFactory' , $ TemplateFactoryProvider) ;
166
+ angular . module ( 'ui.router.util' ) . provider ( '$templateFactory' , TemplateFactoryProvider ) ;
0 commit comments