Javascript 角度ui选择不渲染输入字段
嘿,伙计们,我疯了 我有一个angular 1.4.7项目,希望使用“ui.select”,但我总是遇到以下错误:Javascript 角度ui选择不渲染输入字段,javascript,angularjs,angular-ui-bootstrap,angular-ui-select,Javascript,Angularjs,Angular Ui Bootstrap,Angular Ui Select,嘿,伙计们,我疯了 我有一个angular 1.4.7项目,希望使用“ui.select”,但我总是遇到以下错误: Error: [$compile:tpload] http://errors.angularjs.org/1.4.7/$compile/tpload?p0=bootstrap%2Fmatch-multiple.tpl.html&p1=404&p2=Not%20Found Error: [$compile:tpload] http://errors.angularjs
Error: [$compile:tpload] http://errors.angularjs.org/1.4.7/$compile/tpload?p0=bootstrap%2Fmatch-multiple.tpl.html&p1=404&p2=Not%20Found
Error: [$compile:tpload] http://errors.angularjs.org/1.4.7/$compile/tpload?p0=bootstrap%2Fchoices.tpl.html&p1=404&p2=Not%20Found
Error: [$compile:tpload] http://errors.angularjs.org/1.4.7/$compile/tpload?p0=bootstrap%2Fselect-multiple.tpl.html&p1=404&p2=Not%20Found
我已经测试了一切:(
他们在这里谈论问题,但没有解决方案:
My index.html js部分(头部包含css):
我的指示电话:
<ui-select multiple ng-model="vm.legalbranches">
<ui-select-match placeholder="Select legalbranch...">{{$item.label}}</ui-select-match>
<ui-select-choices repeat="legalbranch in legalbranches | filter: {label: $select.search} track by legalbranch.id">
<span ng-bind="legalbranch.label"></span>
<!--{{legalbranch.label}}-->
</ui-select-choices>
</ui-select>
{{$item.label}
vm.LegalBranchs和LegalBranchs通过resolve在控制器中设置。LegalBranchs是一个对象数组
我正在使用0.14.8版和
版本0.14.0中的angular ui引导
和1.4.7中的角度
问题出在哪里
编辑:
这是加载站点后dom中的结果:
<ui-select multiple="" ng-model="vm.legalbranches" class="ng-pristine ng-untouched ng-valid ng-scope"></ui-select>
我正在使用oclazyload,我执行了以下操作以使ui select运行:
{
name: 'ui.select',
insertBefore: '#ng_load_plugins_before', // load the above css files before '#ng_load_plugins_before'
files: [
'plugins/angularjs/plugins/ui-select/select.min.css',
'plugins/angularjs/plugins/ui-select/select.js' //use the non minify because we have custom edits in it
]
},
我在名称字段中使用了我的应用程序名称,但我必须使用ui.select
谢谢你的帮助我想你在代码中的某个地方做了
$templateCache.removeAll()
它删除了ui选择
模板,然后在渲染时找不到这些模板。我搜索了整个项目结构,没有找到“$templateCache.removeAll()”
{
name: 'ui.select',
insertBefore: '#ng_load_plugins_before', // load the above css files before '#ng_load_plugins_before'
files: [
'plugins/angularjs/plugins/ui-select/select.min.css',
'plugins/angularjs/plugins/ui-select/select.js' //use the non minify because we have custom edits in it
]
},