1

I'm trying to do the following:

<div ng:repeat='row in _.range(0,{{rowCount}})'></div>

but it doesn't evaluate {{rowCount}}. What do I need to do to get it to evaluate?

1 Answer 1

2

The ngRepeat already evals the expression you pass it. You don't need - and really shouldn't - use {{}}. Just reference rowCount:

<div ng:repeat='row in _.range(0,rowCount)'></div>

And it should work!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.