Created
February 9, 2018 15:06
-
-
Save petyosi/6aa0e99f5ea51739a495aed7e88a7d89 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@NgModule({ | |
imports: [ | |
BrowserModule, | |
FormsModule | |
], | |
declarations: [ | |
Grid, | |
Cell | |
], | |
exports: [ | |
Grid | |
] | |
}) | |
export class GridModule { | |
static withComponents(components: any[]) { | |
return { | |
ngModule: GridModule, | |
providers: [ | |
{provide: ANALYZE_FOR_ENTRY_COMPONENTS, useValue: components, multi: true} | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment