Skip to content

Commit

Permalink
Move animations provider to library (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmatta authored May 14, 2024
1 parent 4de2b71 commit e9d06f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion projects/cps-mdoc-viewer/src/lib/lib.provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { MARKED_OPTIONS, MarkedOptions, provideMarkdown } from 'ngx-markdown';
import { HttpClient, provideHttpClient } from '@angular/common/http';
import { routes } from './config/routes';
import { CONFIG_INJECTION_TOKEN, CPSMDocViewerConfig } from './config/config';
import { provideAnimations } from '@angular/platform-browser/animations';

function markedOptionsFactory(): MarkedOptions {
return {
Expand Down Expand Up @@ -57,6 +58,7 @@ export const provideCPSMDocViewer = (
{
provide: CONFIG_INJECTION_TOKEN,
useValue: config
}
},
provideAnimations()
]);
};
2 changes: 0 additions & 2 deletions projects/example-app/src/app/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@

import { ApplicationConfig } from '@angular/core';
import { provideCPSMDocViewer } from 'cps-mdoc-viewer';
import { provideAnimations } from '@angular/platform-browser/animations';

export const appConfig: ApplicationConfig = {
providers: [
provideAnimations(),
provideCPSMDocViewer({
headerTitle: 'CPS MDoc Viewer',
pageTitle: 'Example App of the CPS MDoc Viewer library',
Expand Down

0 comments on commit e9d06f7

Please sign in to comment.