代码之家  ›  专栏  ›  技术社区  ›  Noor A Shuvo

为什么我的变量不能在模板文件中工作

  •  0
  • Noor A Shuvo  · 技术社区  · 6 年前

    我有一个模板

     <tr ng-repeat="emp in legalDocAssetData">
       <td>                              
           <input name="legalAsset_name{{$index}}" ng-model="emp.Name"  ng-disabled="!enabledEdit[editCount++]" />
       </td>
       <td>          
         <select name="legalAsset_selection{{$index}}" ng-model="emp.Selection__c" ng-options="employe.name as employe.name for employe in borrowerDesignationList" ng-disabled="!enabledEdit[editCount++]"></select>
       </td>
       <td>
           <input name="legalAsset_email{{$index}}" ng-model="emp.Email_Address__c"  ng-disabled="!enabledEdit[editCount++]"/>
       </td>                            
       <td >
         <div class="buttons" align="center">
           <button class="btn" ng-disabled="isReadOnly" ng-click="editEmployee(editCount)"><i class="fa fa-edit"></i></button>
         </div>  
       </td>
     </tr>
    
    <tr ng-repeat="emp in achData">
       <td>                              
           <input name="ach_name{{$index}}" ng-model="emp.Name"  ng-disabled="!enabledEdit[editCount++]" />
       </td>
       <td>          
         <select name="ach_selection{{$index}}" ng-model="emp.Selection__c" ng-options="employe.name as employe.name for employe in achList" ng-disabled="!enabledEdit[editCount++]"></select>
       </td>
       <td>
           <input name="ach_email{{$index}}" ng-model="emp.Email_Address__c"  ng-disabled="!enabledEdit[editCount++]"/>
       </td>                            
       <td >
         <div class="buttons" align="center">
           <button class="btn" ng-disabled="isReadOnly" ng-click="editEmployee(editCount)"><i class="fa fa-edit"></i></button>
         </div>  
       </td>
     </tr>
    

    $scope.editCount=0
    

    我的模板未加载并出错

    angular.min.js:103错误:[$parse:syntax]

    这里有什么问题?

    0 回复  |  直到 6 年前