Route Resolve and Controller Activate in AngularJS

Posted by: JohnPapa.net, on 27 Dec 2014 | View original | Bookmarked: 0 time(s)

Angular route resolvers and controller activation. Two great options for running logic on entrance of a new View or route. I get a lot of questions about which technique to use. I’m using AngularJS and I see 2 common patterns to retrieve data and run logic when transitioning to a new View. What’s the difference between running code when a controller starts and running code in a route resolver? The key is that both are valid options. And in some cases either is fine, while in others you...

Similar Posts

  • A RouteHandler for IHttpHandlers more
  • ASP.NET MVC2 Preview 2: Areas and Routes more
  • Lower Case URLs and ASP.NET MVC more
  • IgnoreRoute in ASP.NET Routing is Order Dependent more
  • How to improve the performances of ASP.NET MVC web applications more
  • 13 ASP.NET MVC extensibility points you have to know more
  • Welcome to Talking Points more
  • How to use Ninject with ASP.NET MVC more
  • ASP.NET MVC RC Refresh more
  • Handling Formats Based On Url Extension more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD