How to bind v-scroll-to to a generated id?
See original GitHub issueYou may not understand what I mean, let me show you the code: I have an array Anc[‘1’, ‘2’, ‘3’, ‘4’] and 4 div whose id is 1-4 now this is what I do
<a
v-for='(item, index) in titleInfo'
href='#'
:v-scroll-to="'#' + Anc[index]"
@click='showArticle(index)'
>
{{ titleInfo[index] }}
</a>
but unfortunately it doesn’t work but no error shows in console.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
How to bind a Jquery scroll event to a dynamically added ...
I need to bind a scroll event to this div so that when it reaches the end, an action is fired. $('body'). on('scroll','#searchBarID',...
Read more >Page scroll to id for WordPress tutorial – malihu | web design
In post visual editor, click the toolbar button “Insert Page scroll to id target” to create a target at the cursor position in...
Read more >Document: scroll event - Web APIs - MDN Web Docs - Mozilla
The scroll event fires when the document view has been scrolled. To detect when scrolling has completed, see the Document: scrollend event.
Read more >Table | Page Scrolling | JET Developer Cookbook - Oracle
Construct a MutableArrayDataProvider with an array of data. Use the oj-table tag to create a JET Table; Use the data attribute to bind...
Read more >APL Commands | Alexa Skills Kit - Amazon Developer
Commands evaluate in their source data-binding context. ... Assign a unique value to the target component with the id property and set componentId...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For me it works if i pass the element through the options object
v-scroll-to="{ el: '#' + Anc[index] }"
Just make sure you don’t use v-bind or : here