Pass 2 parameter in url using routing in Angularjs.
i.e. i want the url is like /Business/Industry/3/Aviation
Here is the MVC Controller:
public ActionResult Industry(int ServicesId, string Servicesname = "")
{
return View();
}
Here is the anchor tag:
<a href="#/Industry/{{list.Id}}/{{list.IndustryName}}">
Note:Both are dynamically list.Id and list.IndustryName
Here is the angular routing:
I have try the below but not correct.
can anyone tell me how to do. How to call by routing.
.when('/Business/Industry/:Id', { templateUrl: '/Business/Industry', controller: 'BusinessIndustry' });