From b22bd5eddebeeb93cea8ba6358c342ed54313855 Mon Sep 17 00:00:00 2001 From: Dmitry Nehaychik <4dmitr@gmail.com> Date: Mon, 27 May 2019 19:10:18 +0300 Subject: [PATCH] fix(spinner): ability to set spinner message --- src/framework/theme/components/spinner/spinner.directive.ts | 2 +- src/playground/with-layout/spinner/spinner-card.component.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/framework/theme/components/spinner/spinner.directive.ts b/src/framework/theme/components/spinner/spinner.directive.ts index f99b7fd91a..fe6ebb1498 100644 --- a/src/framework/theme/components/spinner/spinner.directive.ts +++ b/src/framework/theme/components/spinner/spinner.directive.ts @@ -134,7 +134,7 @@ export class NbSpinnerDirective implements OnInit { } setInstanceInputs(instance: NbSpinnerComponent) { - typeof this.spinnerMessage !== 'undefined' && (instance.message = this.spinnerMessage); + instance.message = this.spinnerMessage typeof this.spinnerStatus !== 'undefined' && (instance.status = this.spinnerStatus); typeof this.spinnerSize !== 'undefined' && (instance.size = this.spinnerSize); } diff --git a/src/playground/with-layout/spinner/spinner-card.component.ts b/src/playground/with-layout/spinner/spinner-card.component.ts index e87829a439..2172de7e00 100644 --- a/src/playground/with-layout/spinner/spinner-card.component.ts +++ b/src/playground/with-layout/spinner/spinner-card.component.ts @@ -3,7 +3,10 @@ import { Component } from '@angular/core'; @Component({ selector: 'nb-app-spinner-card', template: ` - + Spinners