Commits
Giuseppe Digilio authored f53d829337a
10 10 | */ |
11 11 | export interface NotificationsSuggestionTargetsPageParams { |
12 12 | pageId?: string; |
13 13 | pageSize?: number; |
14 14 | currentPage?: number; |
15 15 | } |
16 16 | |
17 17 | /** |
18 18 | * This class represents a resolver that retrieve the route data before the route is activated. |
19 19 | */ |
20 - | @Injectable() |
20 + | @Injectable({ providedIn: 'root' }) |
21 21 | export class NotificationsSuggestionTargetsPageResolver implements Resolve<NotificationsSuggestionTargetsPageParams> { |
22 22 | |
23 23 | /** |
24 24 | * Method for resolving the parameters in the current route. |
25 25 | * @param {ActivatedRouteSnapshot} route The current ActivatedRouteSnapshot |
26 26 | * @param {RouterStateSnapshot} state The current RouterStateSnapshot |
27 27 | * @returns AdminNotificationsSuggestionTargetsPageParams Emits the route parameters |
28 28 | */ |
29 29 | resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): NotificationsSuggestionTargetsPageParams { |
30 30 | return { |