Skip to content

Commit c4ab9ba

Browse files
anantanandguptachristopherthielen
authored andcommitted
error fixed
- AngularJS 1.0.8 don't have $injector.has
1 parent 9a1af98 commit c4ab9ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templateFactory.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function $TemplateFactory( $http, $templateCache, $injector) {
8383
if (isFunction(url)) url = url(params);
8484
if (url == null) return null;
8585
else {
86-
if($injector.has('$templateRequest')) {
86+
if($injector.has && $injector.has('$templateRequest')) {
8787
return $injector.get('$templateRequest')(url);
8888
} else {
8989
return $http

0 commit comments

Comments
 (0)