I have a selection list that I get from the controller, written like this:
<select class="input form-control"
id="animationTime"
ng-options="item as item.label for item in aniCon.timeOptions track by item.id"
ng-model="aniCon.popupTime"
ng-init="aniCon.popupTime = aniCon.timeOptions[{{aniCon.popupTime.id}}]">
</select>
This causes a parse error here: aniCon.timeOptions[{..., a value is expected not {{..
The thing is that this value {{aniCon.popupTime.id}}
is seen as 3 when the page loads and then the html is correct: aniCon.popupTime = aniCon.timeOptions[3]
So I want to ignore this parse error somehow.