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

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -