Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
fix(praparat): fix aot build error
Browse files Browse the repository at this point in the history
  • Loading branch information
itigoore01 committed Oct 2, 2019
1 parent 89810fc commit 5710afc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
9 changes: 8 additions & 1 deletion projects/praparat/src/lib/praparat-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,11 @@ export function createPrapratConfig(config: Partial<PraparatConfig> = {}): Prapa
};
}

export const DEFAULT_PRAPARAT_CONFIG = new InjectionToken<PraparatConfig>('DEFAULT_PRAPARAT_CONFIG');
export function DEFAULT_PRAPARAT_CONFIG_FACTORY() {
return createPrapratConfig();
}

export const DEFAULT_PRAPARAT_CONFIG = new InjectionToken<PraparatConfig>('DEFAULT_PRAPARAT_CONFIG', {
providedIn: 'root',
factory: DEFAULT_PRAPARAT_CONFIG_FACTORY,
});
7 changes: 0 additions & 7 deletions projects/praparat/src/lib/praparat.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { PraparatComponent } from './praparat.component';
import { DEFAULT_PRAPARAT_CONFIG, createPrapratConfig } from './praparat-config';



Expand All @@ -11,11 +10,5 @@ import { DEFAULT_PRAPARAT_CONFIG, createPrapratConfig } from './praparat-config'
CommonModule
],
exports: [PraparatComponent],
providers: [
{
provide: DEFAULT_PRAPARAT_CONFIG,
useValue: createPrapratConfig(),
}
],
})
export class PraparatModule { }

0 comments on commit 5710afc

Please sign in to comment.