Commits
Jens Vannerum authored ec89addf17e
24 24 | import { |
25 25 | BrowserHardRedirectService, |
26 26 | locationProvider, |
27 27 | LocationToken |
28 28 | } from '../../app/core/services/browser-hard-redirect.service'; |
29 29 | import { LocaleService } from '../../app/core/locale/locale.service'; |
30 30 | import { GoogleAnalyticsService } from '../../app/statistics/google-analytics.service'; |
31 31 | import { AuthRequestService } from '../../app/core/auth/auth-request.service'; |
32 32 | import { BrowserAuthRequestService } from '../../app/core/auth/browser-auth-request.service'; |
33 33 | import { BrowserInitService } from './browser-init.service'; |
34 + | import { VocabularyTreeviewService } from 'src/app/shared/form/vocabulary-treeview/vocabulary-treeview.service'; |
34 35 | |
35 36 | export const REQ_KEY = makeStateKey<string>('req'); |
36 37 | |
37 38 | export function createTranslateLoader(transferState: TransferState, http: HttpClient) { |
38 39 | return new TranslateBrowserLoader(transferState, http, 'assets/i18n/', '.json'); |
39 40 | } |
40 41 | |
41 42 | export function getRequest(transferState: TransferState): any { |
42 43 | return transferState.get<any>(REQ_KEY, {}); |
43 44 | } |
104 105 | useClass: Angulartics2GoogleTagManager |
105 106 | }, |
106 107 | { |
107 108 | provide: AuthRequestService, |
108 109 | useClass: BrowserAuthRequestService, |
109 110 | }, |
110 111 | { |
111 112 | provide: LocationToken, |
112 113 | useFactory: locationProvider, |
113 114 | }, |
115 + | { |
116 + | provide: VocabularyTreeviewService, |
117 + | useClass: VocabularyTreeviewService, |
118 + | } |
114 119 | ] |
115 120 | }) |
116 121 | export class BrowserAppModule { |
117 122 | } |