Skip to content

Instantly share code, notes, and snippets.

@squadwuschel
Created December 7, 2016 10:51
Show Gist options
  • Save squadwuschel/a2d6363e1b5b5b9b8c860e30706d4f1c to your computer and use it in GitHub Desktop.
Save squadwuschel/a2d6363e1b5b5b9b8c860e30706d4f1c to your computer and use it in GitHub Desktop.
RouteConfig für Angular 2 mit webpack 2
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment