0

i want to create spring mvc form by angularjs ng-repeat. here is my sample code. but {{$index}} value not valid for spring.

   <div ng-repeat="i in list track by $index"> 
     <c:set value="id[{{$index}}]" var="perfix"/> 
   </div>

1 Answer 1

1

You are trying to use compile time code in client side and that can not be done.

The c:set part is getting parsed when your page is getting compiled, but the ng-repeat part is going to run on client system, so there is no c:set part to do the job for you.

You must stick to java script world when you are in javascript (client) side

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.