Angularjs 错误:$compile:tplrt无效的模板根
angular.js:14195错误:[$compile:tplrt]$compile/tplrt?p0=uibTypeaheadPopup&p1=customPopupTemplate.htmlAngularjs 错误:$compile:tplrt无效的模板根,angularjs,angular-ui-bootstrap,Angularjs,Angular Ui Bootstrap,angular.js:14195错误:[$compile:tplrt]$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', lef
<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>
-
{{match.label}
请粘贴一些代码,并说明您试图实现的目标。我认为它无法获取模板。。或者这里面有个错误。。你能发更多的代码吗。。检查模板的双路径非常感谢您的评论…不知道浏览器缓存问题或其他问题…不做任何事情…它正在工作。