Skip to content

Commit bd70581

Browse files
committed
refactor(toaster): provide ToasterService for ToasterComponent instead of root
1 parent 35c6d2a commit bd70581

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projects/coreui-angular/src/lib/toast/toaster/toaster.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ export type TToasterPlacement =
5555
host: {
5656
class: 'toaster toast-container',
5757
'[class]': 'hostClasses()'
58-
}
58+
},
59+
providers: [ToasterService]
5960
})
6061
export class ToasterComponent implements OnInit {
6162
readonly #hostElement = inject(ElementRef);

0 commit comments

Comments
 (0)