Angular自定义指令不加载boostrap导航栏崩溃

时间:2015-12-01 15:56:14

标签: javascript html css angularjs twitter-bootstrap

您好,我目前遇到一些问题,使我的侧栏物品崩溃而没有显示他们的选项,似乎崩溃功能根本没有加载

这是我的自定义指令

from suds.client import Client
c = Client('http://localhost:8000/?wsdl')

#create two permissions
p = c.factory.create('Permission')
p.application = 'usermgr'
p.operation = 'modify'
p.id = c.service.put_permission(p)

q = c.factory.create('Permission')
q.application = 'accountmgr'
q.operation = 'read'
q.id = c.service.put_permission(q)

#create two users
u = c.factory.create('User')
u.user_name = 'abcd'
u.full_name = 'abcd xyz'
u.email = 'abcd@xyz.com'
u.permissions = c.factory.create('PermissionArray')
u.permissions.Permission = [p,q]
u.id = c.service.put_user(u)

v = c.factory.create('User')
v.user_name = 'dcba'
v.full_name = 'dcba zyx'
v.email = 'dcba@zyx.com'
v.permissions = c.factory.create('PermissionArray')
v.permissions.Permission = [p,q] #note the same p,q used in u
v.id = c.service.put_user(v)

这是指令html

put_user(v)

在主html文件中,我确实放置了以下脚本标记

  app.directive('ngSparkline', function() {
    return {
     restrict: 'E',
     templateUrl: 'menu.html'
  }
});

0 个答案:

没有答案