i have an asp web API project and related AngularJS project.
i know if i want to give appearance to Angular, i should call index.html so
- how can i call
index.htmlfile of Angular as default page? - best place to import Angular folders in ASP web API project?
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 }
);
}
art of WebApiConfig:
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
);
index.htmlof angular project whenlocalhost:6993/called.