Skip to content

Instantly share code, notes, and snippets.

@maxca
Created October 14, 2016 03:41
Show Gist options
  • Save maxca/6f5bc7090b8fa4c462df533d60e96f5c to your computer and use it in GitHub Desktop.
Save maxca/6f5bc7090b8fa4c462df533d60e96f5c to your computer and use it in GitHub Desktop.
(function(){
var simpleApp = angular.module('simpleApp', []);
simpleApp.controller('simpleController', ['$location',function($location){
/** receive data */
var id = $location.search().id;
console.log(id);
/** send argument */
$location.path('/redirect-path').search('id','1234');
}]);
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment