Permalink
Browse files

fix(upload): fix typo (#2173)

Fix typo in exception if no HttpClient provided
  • Loading branch information...
Tibing authored and vthinkxie committed Sep 21, 2018
1 parent 69ff576 commit 69c5210ab71028644153917efb67801c3afbc089
Showing with 1 addition and 1 deletion.
  1. +1 −1 components/upload/nz-upload-btn.component.ts
@@ -247,7 +247,7 @@ export class NzUploadBtnComponent implements OnInit, OnChanges, OnDestroy {
// endregion
constructor(@Optional() private http: HttpClient, private el: ElementRef, private updateHostClassService: NzUpdateHostClassService, private cd: ChangeDetectorRef) {
if (!http) {
throw new Error(`Not found 'HttpClient', You can import 'HttpClientModel' in your root module.`);
throw new Error(`Not found 'HttpClient', You can import 'HttpClientModule' in your root module.`);
}
}

0 comments on commit 69c5210

Please sign in to comment.