Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67527

Show div only when it crosses a certain length

$
0
0

There's over 25 questions listed in JSON. I'm trying to show the div only when the user has crossed the 5th question out of the 25 questions. How can I go about this?

Here's where I'm stuck:

<div *ngIf="questions.length > 5">{{(questionIndex+1)}}/{{(questions.length)}}</div>

Viewing all articles
Browse latest Browse all 67527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>