我正在使用 yeoman 的 Angular 生成器和 zurb-foundation 开发应用程序。
Foundation 样式运行良好,但 foundation.js 不工作。我无法使用模式、下拉菜单、顶部栏菜单等任何东西。
我正在这样生成我的项目:
mkdir ang
cd ang
yo angular
bower install -s foundation
grunt serve
有什么想法吗?
提前致谢!
最佳答案
此类问题通常是由 $(document).foundation()
block 在所有 Angular 内容到达 View 之前被调用引起的。
我建议使用 angular-foundation用于基础组件。要么那样做,要么制定您自己的指令,因为那样会处理 $scope 与 DOM 的同步。
关于angularjs - Yeoman Angular 生成器不适用于基础,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22943872/