feat: use route providers and make them public

pull/4377/head
Arman Ozak 5 years ago
parent b8dd287c85
commit b2ed2aa1bd

@ -27,6 +27,7 @@ import { TableSortDirective } from './directives/table-sort.directive';
import { ErrorHandler } from './handlers/error.handler';
import { initLazyStyleHandler } from './handlers/lazy-style.handler';
import { RootParams } from './models/common';
import { THEME_SHARED_ROUTE_PROVIDERS } from './providers/route.provider';
import { THEME_SHARED_APPEND_CONTENT } from './tokens/append-content.token';
import { httpErrorConfigFactory, HTTP_ERROR_CONFIG } from './tokens/http-error.token';
import { DateParserFormatter } from './utils/date-parser-formatter';
@ -108,6 +109,7 @@ export class ThemeSharedModule {
return {
ngModule: ThemeSharedModule,
providers: [
THEME_SHARED_ROUTE_PROVIDERS,
{
provide: APP_INITIALIZER,
multi: true,

@ -2,13 +2,15 @@
* Public API Surface of theme-shared
*/
export * from './lib/theme-shared.module';
export * from './lib/animations';
export * from './lib/components';
export { BOOTSTRAP } from './lib/constants/styles';
export * from './lib/directives';
export * from './lib/enums';
export { ErrorHandler } from './lib/handlers';
export * from './lib/models';
export * from './lib/providers';
export * from './lib/services';
export * from './lib/theme-shared.module';
export * from './lib/tokens';
export * from './lib/utils';

Loading…
Cancel
Save