错误:$ compile:tplrt无效的模板根

时间:2017-01-06 11:28:02

标签: angularjs angular-ui-bootstrap

angular.js:14195错误:[$ compile:tplrt] http://errors.angularjs.org/1.5.10/ $ compile / tplrt?p0 = uibTypeaheadPopup& p1 = customPopupTemplate.html

<script type="text/ng-template" id="customPopupTemplate.html">
<div class="custom-popup-wrapper"
     ng-style="{top: position().top+'px', left: position().left+'px'}"
     style="display: block;"
     ng-show="isOpen() && !moveInProgress"
     aria-hidden="{{!isOpen()}}">

    <ul class="dropdown-menu" role="listbox">
        <li class="uib-typeahead-match" ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }"
            ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)" role="option" id="{{::match.id}}">
            <a>{{match.label}}</a>
        </li>
    </ul>
</div>
</script>


<div class="form-group">
        <label for="bic" class="sr-only"  lp-i18n="bic"></label>
        <input type="text" id="bic" typeahead-popup-template-url="customPopupTemplate.html" name="bic" class="form-control" ng-class="{lpinputerror: submitted && addContact.bic.$error.required}" ng-model="contactsModel.currentContact.bic" placeholder="{{'bic'|translate}}"  uib-typeahead="item.bankBICCode for item in getBIC($viewValue)" />
        <small class="text-danger" ng-show="submitted && addContact.bic.$error.required" lp-i18n="Bic is Required"></small>
 </div>

0 个答案:

没有答案