Question from the AngularJS test

How to use the resolve function in AngularJS

Hard

Choose the correct answer(s) regarding the "resolve" attribute in this example:

$routeProvider.when('/view1', {
   controller: 'View1Ctrl',
   templateUrl: 'view1.html',
   resolve: {
      key1: 'string',
      key2: function2
   }
});
Author: Mathieu RobinStatus: PublishedQuestion passed 82 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!