Skip to content

Commit 0b4ccd9

Browse files
committed
refactor(toast): move active class binding
1 parent a258154 commit 0b4ccd9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

projects/igniteui-angular/src/lib/toast/toast.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,14 @@ export type IgxToastPosition = keyof typeof IgxToastPositionEnum;
6161
templateUrl: 'toast.component.html',
6262
})
6363
export class IgxToastComponent implements IToggleView, OnInit, OnDestroy {
64+
private _isVisible = false;
65+
6466
/**
6567
* @hidden
6668
*/
6769
@HostBinding('class.igx-toast')
6870
public cssClass = 'igx-toast';
6971

70-
@HostBinding('class.igx-toast--active')
71-
private _isVisible = false;
72-
7372
/**
7473
* Sets/gets the `id` of the toast.
7574
* If not set, the `id` will have value `"igx-toast-0"`.
@@ -202,6 +201,7 @@ export class IgxToastComponent implements IToggleView, OnInit, OnDestroy {
202201
* ```
203202
* @memberof IgxToastComponent
204203
*/
204+
@HostBinding('class.igx-toast--active')
205205
@Input()
206206
public get isVisible() {
207207
return this._isVisible;

0 commit comments

Comments
 (0)