The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Resolve

Resolve

2:05
This video shows how the AngularJS 'resolve' feature can be used during the config phase before your controller has been instantiated. This gives you the opportunity to ensure everything has been setup properly that your controller depends on, thus allowing your controller to execute safely based on its assumptions.
Watch this lesson now
Avatar
egghead.io

This video shows how the AngularJS 'resolve' feature can be used during the config phase before your controller has been instantiated. This gives you the opportunity to ensure everything has been setup properly that your controller depends on, thus allowing your controller to execute safely based on its assumptions.

Avatar
Chris

when defining a resolve feature do we have to use the name of the module like the word app for instance ?

In reply to egghead.io
Avatar
Chris

when defining a resolve feature do we have to use the name of the module like the word app for instance ?

In reply to egghead.io
Avatar
John

No, you can name each promises that will be resolved whatever you'd like, then pass that name into the controller.

In reply to Chris
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?