forked from emilol/angular-crumbs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
26 lines (24 loc) · 763 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
import { NgModule, ModuleWithProviders } from "@angular/core";
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { BreadcrumbComponent } from './src/breadcrumb.component';
import { BreadcrumbService } from './src/breadcrumb.service';
export * from './src/breadcrumb.component';
export * from './src/breadcrumb.service';
@NgModule({
imports: [
CommonModule,
RouterModule
],
declarations: [BreadcrumbComponent],
exports: [BreadcrumbComponent],
providers: [BreadcrumbService]
})
export class BreadcrumbModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: BreadcrumbModule,
providers: [BreadcrumbService]
};
}
}