SPA and Dynamic Attributes

I am having trouble with dynamic attributes when using a SPA. For example in my menu I have “Log in” and “Log out” that have dynamic attributes to show and hide according to the users logged in status.

This works fine if I refresh the page however what I want it to do is to update without the page refresh.

What am I missing?

Community Page
Last updated: