Skip to content

Commit 0f106e4

Browse files
committed
added skipSelf decorator on httpClient dependency to resolve issue:85
1 parent fd20f81 commit 0f106e4

File tree

5 files changed

+4
-12
lines changed

5 files changed

+4
-12
lines changed

package-lock.json

Lines changed: 0 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"@angular/platform-browser": "~10.0.5",
2222
"@angular/platform-browser-dynamic": "~10.0.5",
2323
"@angular/router": "~10.0.5",
24-
"angular-file-uploader": "^7.0.1",
2524
"rxjs": "~6.5.5",
2625
"tslib": "^2.0.0",
2726
"zone.js": "~0.10.3"

projects/angular-file-uploader/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-file-uploader",
3-
"version": "7.0.1",
3+
"version": "7.0.2",
44
"license": "MIT",
55
"peerDependencies": {
66
"@angular/common": "^10.0.5",

projects/angular-file-uploader/src/lib/angular-file-uploader.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
OnInit,
77
Output,
88
SimpleChanges,
9+
SkipSelf,
910
} from '@angular/core';
1011
import {
1112
ReplaceTexts,
@@ -77,7 +78,7 @@ export class AngularFileUploaderComponent implements OnChanges {
7778

7879
private idDate: number = +new Date();
7980

80-
constructor(private http: HttpClient) {}
81+
constructor(@SkipSelf() private http: HttpClient) {}
8182

8283
ngOnChanges(changes: SimpleChanges) {
8384
// Track changes in Configuration and see if user has even provided Configuration.

projects/lib-demo/src/app/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { BrowserModule } from '@angular/platform-browser';
22
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
33
import { AngularFileUploaderModule } from "angular-file-uploader";
4-
// To use angular-file-uploader from node-modules remove paths from tsconfig.json in root.
4+
// To use angular-file-uploader from node-modules remove paths from tsconfig.base.json in root.
55
/*
66
"paths": {
77
"angular-file-uploader": [

0 commit comments

Comments
 (0)