-
Suppose I have a bunch of dynamically loaded divs and I want only one of them have the tourAnchor attribute based one some condition. I could achieve this using:
This way, the attribute only shows up on the desired element from a dynamically loaded list of elements. The issue is that ngx-ui-tour cannot attach to elements like this.
I get the following error message, even though when I check the source code of the compiled page it does contain the appropriate tourAnchor:
I tried to make it async, but all that did was wait indefinitely, still doesn't attach to the anchor, even when it's already loaded. Is there a way to make this work? I'm using version 9.2.1 with Angular 14 version, but I'd wager it affects all versions. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Have you tried |
Beta Was this translation helpful? Give feedback.
You can also try
[tourAnchor]="myCondition ? 'anchor_id' : ''"