Skip to content

Commit e378a2c

Browse files
committed
Restructure the codebase under src folder.
1 parent 3926c0d commit e378a2c

4 files changed

Lines changed: 24 additions & 0 deletions

File tree

src/angular2-pubsub.service.spec.ts

Whitespace-only changes.

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from 'angular2-pubsub.service';
2+
export * from 'pubsub.module';

src/pubsub.module.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { PubSubService } from 'angular2-pubsub.service';
2+
import { ModuleWithProviders, NgModule } from '@angular/core';
3+
4+
@NgModule({
5+
providers: [
6+
PubSubService
7+
],
8+
exports: [
9+
PubSubService
10+
],
11+
entryComponent: []
12+
})
13+
export class PubSubModule {
14+
public static forRoot(): ModuleWithProviders {
15+
return {
16+
ngModule: PubSubModule,
17+
providers: [
18+
PubSubService
19+
]
20+
};
21+
}
22+
}

0 commit comments

Comments
 (0)