From 7f3004e3b523f02fd76299fa74c39e9ca106cac6 Mon Sep 17 00:00:00 2001 From: MrFrankel Date: Mon, 22 Jan 2018 23:33:50 +0200 Subject: [PATCH] fix default defaults --- package.json | 2 +- src/popper-directive.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8aa74e7..54707ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ngx-popper", - "version": "1.9.6", + "version": "1.9.8", "description": "ngx-popper is an angular wrapper for popper.js", "directories": { "test": "test" diff --git a/src/popper-directive.ts b/src/popper-directive.ts index 5b873c1..61e7ccf 100644 --- a/src/popper-directive.ts +++ b/src/popper-directive.ts @@ -31,7 +31,7 @@ export class PopperController implements OnInit, OnChanges { private changeDetectorRef: ChangeDetectorRef, private resolver: ComponentFactoryResolver, private renderer: Renderer2, - @Inject('popperDefaults') private popperDefaults: PopperContentOptions) { + @Inject('popperDefaults') private popperDefaults: PopperContentOptions = {}) { PopperController.baseOptions = {...PopperController.baseOptions, ...this.popperDefaults} }