@@ -3,12 +3,15 @@ import {NgModule, ModuleWithProviders} from '@angular/core';
3
3
4
4
import { LinkPreviewComponent } from './components/link-preview.component' ;
5
5
import { LinkPreviewService } from './service/link-preview.service' ;
6
- import { NgxLinkifyjsModule } from 'ngx-linkifyjs' ;
6
+ import { NgxLinkifyjsModule , NgxLinkifyjsService } from 'ngx-linkifyjs' ;
7
7
import { HttpClientModule } from '@angular/common/http' ;
8
8
import { MatCardModule } from '@angular/material' ;
9
+ import { MatLinkPreviewDirective } from './directives/mat-link-preview.directive' ;
9
10
10
11
// Export module's public API
12
+ export { LinkpreviewIntreface } from './interfaces/linkpreview.intreface'
11
13
export { LinkPreviewComponent } from './components/link-preview.component' ;
14
+ export { MatLinkPreviewDirective } from './directives/mat-link-preview.directive' ;
12
15
export { LinkPreviewService } from './service/link-preview.service' ;
13
16
14
17
@NgModule ( {
@@ -18,14 +21,14 @@ export {LinkPreviewService} from './service/link-preview.service';
18
21
NgxLinkifyjsModule ,
19
22
MatCardModule ,
20
23
] ,
21
- exports : [ LinkPreviewComponent ] ,
22
- declarations : [ LinkPreviewComponent ]
24
+ exports : [ LinkPreviewComponent , MatLinkPreviewDirective ] ,
25
+ declarations : [ LinkPreviewComponent , MatLinkPreviewDirective ]
23
26
} )
24
27
export class MatLinkPreviewModule {
25
28
static forRoot ( ) : ModuleWithProviders {
26
29
return {
27
30
ngModule : MatLinkPreviewModule ,
28
- providers : [ LinkPreviewService ]
31
+ providers : [ LinkPreviewService , NgxLinkifyjsService ]
29
32
} ;
30
33
}
31
34
}
0 commit comments