ng-disable不能使用angular-ui

时间:2015-04-26 15:05:16

标签: html angularjs angular-ui

<h3 class="pulse-green-text"><span class="icon ico_pulse_download"></span>VPN Certificate</h3>
<div class="vpn-cert" ng-controller="vpnController vpnCert">
  <form method="post" name="userform" class="form-horizontal" id="user" ng-submit="save(userform)" novalidate>
    <div class="container-fluid">
      <div class="form-group" ng-disabled="true">
        <div class="row">
          <label class="col-sm-6 control-label">Download</label>
          <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 pull-left">
            <label class="control-label">Click the link to download </label>
            <a href="/api/download"> certificate</a>
          </div>
        </div>
        <div class="row">
          <label class="col-sm-6 control-label">Renew</label>
          <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 pull-left">
            <div class="form-group has-feedback">
              <label class="col-sm-2 control-label">Renew the certificate</label>
            </div>
            <button type="button" class="btn btn-primary btn-default btn-xs" ng-click="vpnCert.renew();">
              RENEW
            </button>
          </div>
        </div>
      </div>
    </div>
  </form>
</div>

知道如何让它发挥作用吗?

1 个答案:

答案 0 :(得分:1)

ng-disabled仅适用于按钮,输入,选择等特定元素。 您可以在角度文档https://docs.angularjs.org/api/ng/directive/ngDisabled

中阅读有关ng-disabled的更多信息

请为您的问题提供更多信息以获得更好的答案