-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcallback.html
30 lines (25 loc) · 998 Bytes
/
callback.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html ng-app="sample">
<head lang="it">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Custom Callback</title>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true&libraries=places"></script>
<script src="../bower_components/angular/angular.js"></script>
<script src="../dist/js/ngplacesmap.min.js"></script>
<link href="../dist/css/ngplacesmap.min.css" media="all" rel="stylesheet" />
</head>
<body ng-controller="MainCtrl">
<h1>Custom Callback</h1>
<places-map custom-callback="customCallbackFunction( pickedPlace )"></places-map>
<script>
angular.module('sample', ['ngPlacesMap'])
.controller('MainCtrl', function ( $scope ) {
$scope.customCallbackFunction = function( pickedPlace ){
console.log( pickedPlace );
}
});
</script>
</body>
</html>