使用angularjs时发生IE9 TypeError

时间:2015-11-03 23:07:37

标签: javascript html angularjs internet-explorer

我正在尝试在IE9中测试使用angularjs构建的Web应用程序(必要)。然而,在加载页面时,所有角度元素都会断开,并且可以看到角度表达式。该应用程序适用于Chrome,Mozilla和更高版本的IE。 IE9中显示的错误是:

enter image description here

HTML

<div class="content-wrapper" ng-controller="LoadingController">
    <div class="container wrap-content" ui-view></div>
</div>

...
<div class="row">
        <div class="col-md-12">
            <div class="panel panel-default notifications">
                <div class="panel-heading">
                    <h4>Notifications</h4>
                </div>
                <div class="panel-body" ng-controller="ActivityController">
                    <table class="table table-hover">
                        <tbody>
                          <tr ng-repeat="activity in activities | startFrom:currentPage*pageSize | limitTo:pageSize">
                              <td class="client">
                                  <img src="images/notification.png" class="img-responsive">
                              </td>
                              <td class="message">
                                  {{activity.first_name}} {{activity.last_name}} {{activity.message}} on <strong>{{activity.created_at | notifyDate}}</strong>
                              </td>
                              <td class="buttons" ng-if="activity.type_of_activity == 'client' ">
                                  <button class="btn btn-default btn-sm review-btn" ui-sref="client({id:activity.client_ucin})">View Client</button>
                              </td>
                              <td class="buttons" ng-if="activity.type_of_activity == 'workflow' ">
                                  <button class="btn btn-success btn-sm" ui-sref="client-loan({id:activity.client_ucin,loan_id:activity.client_loan})">View  Client Loan</button>
                              </td>
                          </tr>
                        </tbody>
                    </table>
                    <div class="text-center pagination-btns">
                      <button class="btn btn-default btn-md" ng-disabled="currentPage == 0" ng-click="currentPage=currentPage-1">Previous</button>&nbsp;<span style="color: #777">{{currentPage+1}}/{{numberOfPages()}}</span>&nbsp;
                      <button class="btn btn-default btn-md" ng-disabled="currentPage >= activities.length/pageSize - 1" ng-click="currentPage=currentPage+1">Next</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
...

我已经搜索了stackoverflow和google来找到这个问题的解决方案,但到目前为止还没有。我真的难以理解可能导致这个问题的原因。我尝试将 ui-view 添加为元素,并将数据附加到 ui-view 的前面,但是没有用。有人可以协助我解决这个问题。

0 个答案:

没有答案