Skip to content

Instantly share code, notes, and snippets.

@suras
suras / gist:8450720
Created January 16, 2014 06:39
barter.li autosuggest
'use strict';
barterApp.directive('autosuggest', function($timeout, $http) {
return {
restrict: "E",
scope: {
modelupdate:"=",
suggestions:"=",
urlsend:"@"
},
@suras
suras / agularjs reverse geocoding
Created December 31, 2013 13:27
angular.js getting location with html5 location api and reverse geocoding
// to get the current latitude and longitude from browser
// credits https://github.com/arunisrael/angularjs-geolocation
'use strict';
angular.module('geolocation',[]).constant('geolocation_msgs', {
'errors.location.unsupportedBrowser':'Browser does not support location services',
'errors.location.notFound':'Unable to determine your location',
});
angular.module('geolocation')