1.AngularJS Route and MVC Route
Http://www.cnblogs.com/usea/p/4211989.html
Public classsingleroute:routebase{ Public Overrideroutedata Getroutedata (httpcontextbase HttpContext) {vardata =NewRoutedata ( This,NewMvcroutehandler ()); Data. Values.add ("Controller","Home"); Data. Values.add ("Action","Index"); returndata; } Public Overridevirtualpathdata GetVirtualPath (RequestContext requestcontext, routevaluedictionary values) {return NULL; }}
View Code
Public classrouteconfig{ Public Static voidregisterroutes (routecollection routes) {routes. Ignoreroute ("{Resource}.axd/{*pathinfo}"); Routes. Ignoreroute ("Favicon.ico"); Routes. ADD (NewSingleroute ()); Routes. MapRoute (Name:"Default", URL:"{Controller}/{action}/{id}", defaults:New{controller ="Home", action ="Index", id =urlparameter.optional}); }}
View Code
Recommended if you do not do SEO words can be used directly # just fine, do not engage in these.
Visual Studio Owin+mvc+webapi+odatav4+entityfrawork+identity+oauth2.0+angularjs 1.x learning notes "pit"