I would like to use URL parameters for routing in angularjs
I have an anguar application with two views: editView and mainView
Given a URL that looks like this: 'Httx: // MyApp / param1 = x & ... & EditMode = 1 & ...
-> lead me to the path / editMode
What would be a good way to do this?
$routeProvider.when('/', { controller: function($routeParams, $location) { if($routeParams.editmode == '1') { $location.path('editMode') ...
source share