From 77c504ccbbfe7c5a84fb6bb4459cb558968c5aa0 Mon Sep 17 00:00:00 2001 From: Amer Date: Fri, 3 Feb 2017 15:20:44 +0100 Subject: [PATCH 1/2] Added input decorator to defaultBgColor and defaultBoColor. --- src/ui-switch.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui-switch.component.ts b/src/ui-switch.component.ts index 32a11c5..f6dd49f 100644 --- a/src/ui-switch.component.ts +++ b/src/ui-switch.component.ts @@ -145,8 +145,8 @@ export class UiSwitchComponent implements ControlValueAccessor { @Input() color: string = 'rgb(100, 189, 99)'; @Input() switchOffColor: string = ''; @Input() switchColor: string = '#fff'; - defaultBgColor: string = '#fff'; - defaultBoColor: string = '#dfdfdf'; + @Input() defaultBgColor: string = '#fff'; + @Input() defaultBoColor: string = '#dfdfdf'; getColor(flag) { if (flag === 'borderColor') return this.defaultBoColor; From 47aefe8cafec5ec6494c89a03b09c83afc584cab Mon Sep 17 00:00:00 2001 From: Amer Date: Fri, 3 Feb 2017 15:24:20 +0100 Subject: [PATCH 2/2] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bba3021..f51ec7f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular2-ui-switch", - "version": "1.2.0", + "version": "1.2.1", "description": "switch button for angular2", "main": "dist/index.js", "typings": "dist/index.d.ts",