Another way to add a parameter to the url:
$location.path('/myURL/'+ param1);
and you can define a route to myPage.html:
config(['$routeProvider', function ($routeProvider) { $routeProvider.when('/myURL/:param1', { templateUrl: 'path/myPage.html', controller: newController }); }]);
Then in newController you can access the parameter:
var param1= $routeParams.param1;
krzysiek.ste Jun 23 '14 at 14:38 2014-06-23 14:38
source share