Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
function InfoController($scope) { | ||
function InfoController($scope, $log) { | ||
$scope.templateValue = 'hello from the template itself'; | ||
$scope.clickedButtonInWindow = function () { | ||
$log.info('clicked a window in the template!'); | ||
}; | ||
}; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,9 +24,9 @@ angular.module("google-maps.api.utils") | |
if content? and defaults? | ||
angular.extend {}, defaults, | ||
content: if defaults.content? | ||
then $compile(defaults.content)(scope.$new()) else $compile(content)(scope.$new()), | ||
then defaults.content else $compile(content)(scope)[0], | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
nlaplante
Author
Contributor
|
||
position: if defaults.position? | ||
then defaults.position else if angular.isObject(gMarker) | ||
then gMarker.getPosition() else new google.maps.LatLng(scope.coords.latitude, scope.coords.longitude) | ||
|
||
defaultDelay: 50 | ||
defaultDelay: 50 |
Will there always be a [0]? Should we check length? Also should we support the old way as well without a window controller.