Europace - behind the scenes
  • Home
  • Impressum
  • Datenschutz

initialization

Einblicke, Gedanken, Ideen, Veranstaltungen unserer Kollegen, die Europace entwickeln

angularjs

Ordered Initialization of an AngularJS Application with Asynchronous Data Using Promises

AngularJS helps with loading your app through dependency injection based on ordered class instantiation. Nevertheless, you sometimes need to know whether any pending request or function call has been finished in order to initialize your controllers, $scope or services. This article describes our solution to split the application lifecycle into several phases, namely „instantiation“, „initialization“ and „running“. You can find the downloadable code at GitHub, a working demo is available at jsfiddle.

  • Tobias Gesellchen
    Tobias Gesellchen
Tobias Gesellchen 28 October 2013 • 8 min read
Europace - behind the scenes © 2013
Latest Posts Twitter Hugo Casper3 by Jonathan Janssens