Skip to content
\n

I tried in Stackblitz. Same: https://stackblitz.com/edit/angular-chgduv

\n

I just followed the docs on: https://taiga-ui.dev/components/alert/Setup

\n

Are docs outdated? If yes, what is the correct way to specify autoClose?

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

Docs are outdated, alerts now have separate token object that depends on notification options:

\n
export const TUI_ALERT_OPTIONS = tuiCreateTokenFromFactory<TuiAlertOptions>(() => ({\n    ...TUI_ALERT_DEFAULT_OPTIONS,\n    ...inject(TUI_NOTIFICATION_OPTIONS),\n}));
\n

I'll add helper function and update docs.

","upvoteCount":1,"url":"https://github.com/orgs/taiga-family/discussions/9525#discussioncomment-10971126"}}}

tuiNotificationOptionsProvider throwing compiler errors #9525

Answered by waterplea
loxy asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@loxy
Comment options

@waterplea
Comment options

Answer selected by loxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants