javascript - Handlebars angular JS parse error in ng-select -


i have ng-repeat div, , inside div have select control. code produces parse error:

<select name="qty" ng-model="qty">    <option ng-repeat="v in [1,2,3,4,5,6,7,8,9,10]"             value="{{v}}" ng-selected="v=={{item["menuitem.qty"]}}">            {{v}}            </option> </select> 

in f12 console prints ng-selected="{{item[" menuitem.qty"]}}"=""

so, see there issue handlebars , array, cannot figure out wrong here.

change

ng-selected="v=={{item["menuitem.qty"]}}" 

to

ng-selected="v=={{item['menuitem.qty']}}" 

Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -