wyntau / angular-require

use require in angular.js painless
53 stars 25 forks source link

require-css出错 #3

Open hubiao1 opened 7 years ago

hubiao1 commented 7 years ago

你把你的例子完整的例出来,大家直接下载 你的就好。免得东奔西找。。。伟大的作者,你说是不?

我现在出现这个错误了

.when('/book/mark/:id', { controller:'bookMarkController', templateUrl:'template/book/mark.html', resolve:{ deps: $requireProvider.requireJS([ 'template/book/mark', '../static/plug/ztree_v3/jquery.ztree.core.min' ]), css: $requireProvider.requireCSS([ 'css!../static/plug/ztree_v3/zTreeStyle.css' ]) } });

17 (url)

hubiao1 commented 7 years ago

@Treri

wyntau commented 7 years ago

请看本 repo 的 example分支吧。看不到你的具体代码, 所以不好替你找问题, 但是你可以通过 example分支了解怎么使用

hubiao1 commented 7 years ago

你这个是在 ui-router基础上弄的,请问 支持 原生angularjs的 router吗?

hubiao1 commented 7 years ago

@Treri

wyntau commented 7 years ago

应该是不支持

hubiao1 commented 7 years ago

支持的,我刚才测试了。大哥!

你把你的 改下吧 css 改成 css: $requireProvider.requireCSS([ 'style!../static/plug/ztree_v3/zTreeStyle' ])

hubiao1 commented 7 years ago

@Treri

hubiao1 commented 7 years ago

@Treri 大哥你QQ多少啦?咱俩这样沟通有些麻烦

hubiao1 commented 7 years ago

@Treri 你发我后,然后我把这条信息给删掉,防止泄露。