-
Hi! when I try to configure alerts / notifications I get compiler errors:
I tried in Stackblitz. Same: https://stackblitz.com/edit/angular-chgduv I just followed the docs on: https://taiga-ui.dev/components/alert/Setup Are docs outdated? If yes, what is the correct way to specify |
Beta Was this translation helpful? Give feedback.
Answered by
waterplea
Oct 17, 2024
Replies: 1 comment 2 replies
-
Docs are outdated, alerts now have separate token object that depends on notification options: export const TUI_ALERT_OPTIONS = tuiCreateTokenFromFactory<TuiAlertOptions>(() => ({
...TUI_ALERT_DEFAULT_OPTIONS,
...inject(TUI_NOTIFICATION_OPTIONS),
})); I'll add helper function and update docs. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
loxy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Docs are outdated, alerts now have separate token object that depends on notification options:
I'll add helper function and update docs.