Skip to content

Commit

Permalink
added skipSelf decorator on httpClient dependency to resolve issue:85
Browse files Browse the repository at this point in the history
  • Loading branch information
kzrfaisal committed Nov 13, 2020
1 parent fd20f81 commit 0f106e4
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 12 deletions.
8 changes: 0 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"@angular/platform-browser": "~10.0.5",
"@angular/platform-browser-dynamic": "~10.0.5",
"@angular/router": "~10.0.5",
"angular-file-uploader": "^7.0.1",
"rxjs": "~6.5.5",
"tslib": "^2.0.0",
"zone.js": "~0.10.3"
Expand Down
2 changes: 1 addition & 1 deletion projects/angular-file-uploader/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-file-uploader",
"version": "7.0.1",
"version": "7.0.2",
"license": "MIT",
"peerDependencies": {
"@angular/common": "^10.0.5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
OnInit,
Output,
SimpleChanges,
SkipSelf,
} from '@angular/core';
import {
ReplaceTexts,
Expand Down Expand Up @@ -77,7 +78,7 @@ export class AngularFileUploaderComponent implements OnChanges {

private idDate: number = +new Date();

constructor(private http: HttpClient) {}
constructor(@SkipSelf() private http: HttpClient) {}

ngOnChanges(changes: SimpleChanges) {
// Track changes in Configuration and see if user has even provided Configuration.
Expand Down
2 changes: 1 addition & 1 deletion projects/lib-demo/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BrowserModule } from '@angular/platform-browser';
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { AngularFileUploaderModule } from "angular-file-uploader";
// To use angular-file-uploader from node-modules remove paths from tsconfig.json in root.
// To use angular-file-uploader from node-modules remove paths from tsconfig.base.json in root.
/*
"paths": {
"angular-file-uploader": [
Expand Down

0 comments on commit 0f106e4

Please sign in to comment.