public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
// We have an angular application. All other pages routing is done there
// This route must be the last one!
routes.MapRoute(
"Default",
"{*url}",
new { controller = "AngularApp", action = "Layout" }
);
}
}
In my example, as you can see all the requests are directed to AngularAppController, Layout Action