resolve function not executing before route loads
What is resolve in AngularJS? In AngularJS (ngRoute or ui-router), the resolve property is used to: Example: $routeProvider .when(‘/dashboard’, { templateUrl: ‘dashboard.html’, controller: ‘DashboardCtrl’, resolve: { userData: function(UserService) { return….