Object-style state resolves.
Use this when resolve tokens are string keys and each value is a normal AngularTS injectable function or annotated factory.
Example:
resolve: { user: ["UserService", (UserService) => UserService.current()], featureFlags: () => fetchFlags(),} Copy
resolve: { user: ["UserService", (UserService) => UserService.current()], featureFlags: () => fetchFlags(),}
Object-style state resolves.
Use this when resolve tokens are string keys and each value is a normal AngularTS injectable function or annotated factory.
Example: