I am using the state provider for mapping the urls , and the following is my AngularJS code.
.state('uimenucategories', {
url: "/MenuCategory.html",
templateUrl: "/AppMenuMaker/MenuCategory",
data: {pageTitle: 'Menu Category'},
controller: "MenuCategoryController",
resolve: {
deps: ['$ocLazyLoad', function($ocLazyLoad) {
return $ocLazyLoad.load([{
name: 'MetronicApp',
files: [
'js/controllers/MenuCategoryController.js',
]
}]);
}]
}
})
I want to take parameters from the URL to pass them to the action before rendering the view
public ActionResult MenuCategory(int? CategoryID){}
any help for how I can send them from URL like this Dashboard/Index#/ViewMenuCategories.html?ID=1
?