forked from BioPhoton/angular-star-rating
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.ts
30 lines (27 loc) · 855 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import {starRatingDirection, starRatingColor, starRatingPosition, starRatingSizes, starRatingSpeed, starRatingStarSpace, starRatingStarTypes} from './src/star-rating-struct';
import { StarRatingComponent } from './src/star-rating.component';
import { StarRatingConfig } from './src/star-rating-config';
export * from './src/star-rating-struct';
export * from './src/star-rating.component';
export * from './src/star-rating-config';
@NgModule({
imports: [
CommonModule
],
declarations: [
StarRatingComponent
],
exports: [
StarRatingComponent
]
})
export class StarRatingModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: StarRatingModule,
providers: [StarRatingConfig]
};
}
}