diff --git a/src/app/components/button/button.ts b/src/app/components/button/button.ts index 788b90f7bc3..196fba84d5d 100755 --- a/src/app/components/button/button.ts +++ b/src/app/components/button/button.ts @@ -411,6 +411,8 @@ export class Button implements AfterContentInit { @ContentChildren(PrimeTemplate) templates: QueryList | undefined; + constructor(public el: ElementRef) {} + spinnerIconClass(): string { return Object.entries(this.iconClass()) .filter(([, value]) => !!value)