Skip to content

Commit

Permalink
Merge pull request #41 from Coly010/fix/aot-compilation
Browse files Browse the repository at this point in the history
fix: aot compilation for angular < 9
  • Loading branch information
MartinNuc authored Oct 12, 2020
2 parents 85ce56c + fef9463 commit 9286823
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion projects/ngx-flow/src/lib/ngx-flow.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ import { FlowDirective } from './flow.directive';
import { SrcDirective } from './src.directive';

const directives = [ButtonDirective, SrcDirective, DropDirective, FlowDirective];
export function flowFactory() {
return Flow;
}

@NgModule({
imports: [],
declarations: directives,
providers: [
{
provide: FlowInjectionToken,
useValue: Flow
useFactory: flowFactory
}
],
exports: directives
Expand Down

0 comments on commit 9286823

Please sign in to comment.