I tried in Stackblitz. Same: https://stackblitz.com/edit/angular-chgduv
\nI just followed the docs on: https://taiga-ui.dev/components/alert/Setup
\nAre docs outdated? If yes, what is the correct way to specify autoClose
?
Docs are outdated, alerts now have separate token object that depends on notification options:
\nexport const TUI_ALERT_OPTIONS = tuiCreateTokenFromFactory<TuiAlertOptions>(() => ({\n ...TUI_ALERT_DEFAULT_OPTIONS,\n ...inject(TUI_NOTIFICATION_OPTIONS),\n}));
I'll add helper function and update docs.
","upvoteCount":1,"url":"https://github.com/orgs/taiga-family/discussions/9525#discussioncomment-10971126"}}}-
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.
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.
Docs are outdated, alerts now have separate token object that depends on notification options:
I'll add helper function and update docs.