Skip to content

Commit

Permalink
feat: provide service in root
Browse files Browse the repository at this point in the history
  • Loading branch information
kukhariev committed Dec 30, 2018
1 parent e07445d commit d41294d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/uploadx/src/uploadx.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';

import { UploadxDirective } from './uploadx.directive';
import { UploadxService } from './uploadx.service';

@NgModule({
imports: [CommonModule],
declarations: [UploadxDirective],
exports: [UploadxDirective],
providers: [UploadxService]
exports: [UploadxDirective]
})
export class UploadxModule {}
2 changes: 1 addition & 1 deletion src/uploadx/src/uploadx.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Uploader } from './uploader';
/**
*
*/
@Injectable()
@Injectable({ providedIn: 'root'})
export class UploadxService {
subj: Subject<UploadState> = new Subject();
private queue: Uploader[] = [];
Expand Down

0 comments on commit d41294d

Please sign in to comment.