Skip to content

Instantly share code, notes, and snippets.

@sbosell
Created February 17, 2014 23:59
Show Gist options
  • Save sbosell/9061818 to your computer and use it in GitHub Desktop.
Save sbosell/9061818 to your computer and use it in GitHub Desktop.
Umbraco Angular Global
namespace MvcApplication1
{
public class Global : UmbracoApplication
{
protected override void OnApplicationStarting(object sender, EventArgs e)
{
DefaultRenderMvcControllerResolver.Current.SetDefaultControllerType(typeof(DefaultController));
IControllerFactory factory = new CustomControllerFactory();
ControllerBuilder.Current.SetControllerFactory(new CustomControllerFactory());
base.OnApplicationStarting(sender, e);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment