File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
projects/coreui-angular/src/lib/toast/toast Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,11 @@ export class ToastComponent implements OnInit, OnDestroy {
62
62
readonly toasterService = inject ( ToasterService ) ;
63
63
64
64
readonly dynamic = input < boolean > ( ) ;
65
- readonly placement = input < TToasterPlacement > ( ) ;
65
+ readonly placementInput = input < TToasterPlacement > ( undefined , { alias : 'placement' } ) ;
66
+
67
+ get placement ( ) {
68
+ return this . placementInput ( ) ;
69
+ }
66
70
67
71
/**
68
72
* Auto hide the toast.
@@ -170,7 +174,7 @@ export class ToastComponent implements OnInit, OnDestroy {
170
174
this . toasterService . setState ( {
171
175
toast : this ,
172
176
show : this . visible ,
173
- placement : this . placement ( )
177
+ placement : this . placement
174
178
} ) ;
175
179
this . clearTimer ( ) ;
176
180
this . setTimer ( ) ;
@@ -200,7 +204,7 @@ export class ToastComponent implements OnInit, OnDestroy {
200
204
this . toasterService . setState ( {
201
205
toast : this ,
202
206
show : false ,
203
- placement : this . placement ( )
207
+ placement : this . placement
204
208
} ) ;
205
209
}
206
210
You can’t perform that action at this time.
0 commit comments