{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1076","labels_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1076/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1076/comments","events_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1076/events","html_url":"https://github.com/angular-ui/angular-google-maps/issues/1076","id":54213264,"number":1076,"title":"[2.0.12] Using ng-model with search-box","user":{"login":"sgimeno","id":946661,"avatar_url":"https://avatars.githubusercontent.com/u/946661?v=3","gravatar_id":"","url":"https://api.github.com/users/sgimeno","html_url":"https://github.com/sgimeno","followers_url":"https://api.github.com/users/sgimeno/followers","following_url":"https://api.github.com/users/sgimeno/following{/other_user}","gists_url":"https://api.github.com/users/sgimeno/gists{/gist_id}","starred_url":"https://api.github.com/users/sgimeno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgimeno/subscriptions","organizations_url":"https://api.github.com/users/sgimeno/orgs","repos_url":"https://api.github.com/users/sgimeno/repos","events_url":"https://api.github.com/users/sgimeno/events{/privacy}","received_events_url":"https://api.github.com/users/sgimeno/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"kandizzy","id":139851,"avatar_url":"https://avatars.githubusercontent.com/u/139851?v=3","gravatar_id":"","url":"https://api.github.com/users/kandizzy","html_url":"https://github.com/kandizzy","followers_url":"https://api.github.com/users/kandizzy/followers","following_url":"https://api.github.com/users/kandizzy/following{/other_user}","gists_url":"https://api.github.com/users/kandizzy/gists{/gist_id}","starred_url":"https://api.github.com/users/kandizzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kandizzy/subscriptions","organizations_url":"https://api.github.com/users/kandizzy/orgs","repos_url":"https://api.github.com/users/kandizzy/repos","events_url":"https://api.github.com/users/kandizzy/events{/privacy}","received_events_url":"https://api.github.com/users/kandizzy/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-01-13T16:20:48Z","updated_at":"2015-03-16T20:19:52Z","closed_at":null,"body":"When using the `search-box` I can't figure out how I can bind/get my view value to the current scope. For me the most angular-natural way would be to use `ng-model` in the `searchbox.tpl.html` file/template:\r\n\r\n```\r\n<input type=\"text\" ng-model=\"map.mySearchBoxModel\">\r\n```\r\n\r\nWhere `map` would be the controller wrapping the `ui-gmap-google-map` directive. Whats the preferred way of doing so atm? Should we document it in the `search-box` docs?"},"comment":{"url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/comments/81916281","html_url":"https://github.com/angular-ui/angular-google-maps/issues/1076#issuecomment-81916281","issue_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1076","id":81916281,"user":{"login":"dflourusso","id":5544901,"avatar_url":"https://avatars.githubusercontent.com/u/5544901?v=3","gravatar_id":"","url":"https://api.github.com/users/dflourusso","html_url":"https://github.com/dflourusso","followers_url":"https://api.github.com/users/dflourusso/followers","following_url":"https://api.github.com/users/dflourusso/following{/other_user}","gists_url":"https://api.github.com/users/dflourusso/gists{/gist_id}","starred_url":"https://api.github.com/users/dflourusso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dflourusso/subscriptions","organizations_url":"https://api.github.com/users/dflourusso/orgs","repos_url":"https://api.github.com/users/dflourusso/repos","events_url":"https://api.github.com/users/dflourusso/events{/privacy}","received_events_url":"https://api.github.com/users/dflourusso/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T20:19:52Z","updated_at":"2015-03-16T20:19:52Z","body":"I tryed now on template:\r\n```\r\n<input class=\"form-control search-box\" type=\"text\" placeholder=\"Digite um endereço\" ng-model=\"text\">\r\n```\r\nand controller:\r\n```\r\n$scope.text = 'Rua teste'\r\n  $scope.$watch 'text', ->\r\n    alert 'testes'\r\n```\r\nbu nothing yet."}}