无法访问功能手风琴

时间:2016-10-17 03:51:54

标签: javascript jquery angularjs

我是角度js的新手,我在td中创建了一个手风琴但是我无法在手风琴中点击按钮调用方法。我无法理解手风琴中方法的范围。

        <tr>
            <!--Request Type-->
            <td valign="top">
                <label for="quoteType" ng-class="{required:!quoteRequest.type}" required translate>quoteNew.request.type</label>
                <select style="margin-left: 34px" id="quoteType" ng-class="{dropdowWithLongDataRequestType:isBrowserIE()}" ng-model="quoteRequest.type"
                        ng-options="type.typeId as type.typeLabel for type in types"
                        ng-change="quoteRequestTypeChange()"
                        name="requestType"
                        required>
                    <option value=""></option>
                </select>
                <p style="padding-left: 250px" ng-show="requestTypeForm.requestType.$invalid && (nextClicked || saveClicked)" class="formError" translate>form.mandatory</p>
             <button class="bouton_action" type="button" ng-click="sayHello('quoteType')"
        ng-class="{bouton_action_pushed:inProgress.save}" ng-disabled='inProgress.save' translate>
    button.save
</button>
         <div accordion-group="" ng-init="status = {isOpen: false}" is-open="status.isOpen">
  <div accordion-heading="">
      <div ng-class="{'is-open': status.isOpen}"><img src= "../../../img/icones/add.png"></div>
  </div>
  <textarea rows="2" cols="3" ng-model="{{quoteRequest.type}}"></textarea>
   <button class="bouton_action" type="button" onclick="sayHello('quoteType')"
        ng-class="{bouton_action_pushed:inProgress.save}" ng-disabled='inProgress.save' translate>
  button.save
</button>

sayHello()在手风琴之外被召唤。但是在手风琴里面它并没有被调用。

1 个答案:

答案 0 :(得分:0)

改变
onclick="sayHello('quoteType')"

ng-click="sayHello('quoteType')"