棱角分明的UI引导和leafletjs [英] angular ui-bootstrap and leafletjs
本文介绍了棱角分明的UI引导和leafletjs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要为在地图上做标记模式窗口。
所以,我包括 leafletjs
在地图,我想包括 UI-引导
模态窗口。
I want to do modal window for markers on map.
So, I include leafletjs
for map and I want to include ui-bootstrap
for modal window.
var scotchApp = angular.module('scotchApp', ['ngRoute', 'leaflet-directive']);
但如果我这样做
var scotchApp = angular.module('scotchApp', ['ngRoute', 'ui-bootstrap', 'leaflet-directive']);
我得到
[$injector:modulerr] http://errors.angularjs.org/1.2.6/$injector/modulerr?p0=scotchApp&p1=Error%…rjs.org%2F1.2.6%2F%24injector%2Fmodulerr%3Fp0%3Dui-bootstrap%26p1%3DError%...<omitted>...6)
那是什么?谢谢。
what's that? thanks.
推荐答案
您的包括不存在的模块:UI自举
You are including a module that doesn't exist: 'ui-bootstrap'
正确的版本与'ui.bootstrap
:
var scotchApp = angular.module('scotchApp', ['ngRoute', 'ui.bootstrap', 'leaflet-directive']);
编辑:
不要忘了在您的网页库:
Don't forget to include the library in your page:
<script type="text/javascript" src="path/to/uibootstrap.js"></script>
这篇关于棱角分明的UI引导和leafletjs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文