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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy