This repository was archived by the owner on Nov 30, 2018. It is now read-only.
File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ angular.module("uiGmapgoogle-maps.directives.api")
42
42
43
43
else
44
44
$http .get (scope .template , { cache : $templateCache })
45
- .success (template) =>
45
+ .then (template) =>
46
46
templateScope = scope .$new ()
47
47
controlDiv .append template
48
48
@@ -54,7 +54,7 @@ angular.module("uiGmapgoogle-maps.directives.api")
54
54
# use children() rather than content() as the former seems to trim the content
55
55
control = $compile (controlDiv .children ())(templateScope)
56
56
57
- .error (error) =>
57
+ .catch (error) =>
58
58
@$log .error ' mapControl: template could not be found'
59
59
.then =>
60
60
pushControl (map, control, index)
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ angular.module('uiGmapgoogle-maps')
42
42
$templateCache .put ' uigmap-searchbox-default.tpl.html' , ' <input type="text">'
43
43
scope .template = ' uigmap-searchbox-default.tpl.html'
44
44
$http .get (scope .template , { cache : $templateCache })
45
- .success (template) =>
45
+ .then (template) =>
46
46
if angular .isUndefined scope .events
47
47
@$log .error ' searchBox: the events property is required'
48
48
return
You can’t perform that action at this time.
0 commit comments