-
I am just messing around with DataStar. So far, I love it. Can I bind document title to a signal? This does not seem to work: <title data-text="$title">default</title> It works with an element within though bound to $title on the same page. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Confirmed that this does not work, should it @delaneyj? |
Beta Was this translation helpful? Give feedback.
-
The Datastar plugins are only applied to the document body. You can change the title using a merge fragments event, see the example at https://data-star.dev/examples/title_update_backend Does this solve your use-case? |
Beta Was this translation helpful? Give feedback.
-
Wow, phenomenal! I am a bit awed. It required |
Beta Was this translation helpful? Give feedback.
The Datastar plugins are only applied to the document body. You can change the title using a merge fragments event, see the example at https://data-star.dev/examples/title_update_backend
Does this solve your use-case?