javascript 关于使用 Zurb 的 Foundation+AngularJS 的想法?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20192948/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Thoughts on using Zurb's Foundation+AngularJS?
提问by Iraklis Alexopoulos
I know this sounds like a pretty generic question, but I have already made a research and there is not much information out there, other than these two seem not to "play" very well together.
我知道这听起来像是一个非常笼统的问题,但我已经进行了研究,并且没有太多信息,除了这两个似乎不能很好地“玩”在一起。
I am referring to the latest version of Foundation, 5, which just got released. If AngularJS
can work with jQuery, and Foundation is using jQuery, what is it that causes the problem, if there is a problem at all.
我指的是刚刚发布的 Foundation 5 的最新版本。如果AngularJS
可以使用jQuery,并且 Foundation 正在使用jQuery,那么导致问题的原因是什么,如果有问题的话。
Has any of you used these two together? And what could be some better alternatives on the JSside of things? Backbone? Ember? Which one would work with Foundation and why?
有没有人一起用过这两个?在JS方面还有什么更好的选择?骨干?余烬?哪一个可以与 Foundation 一起使用,为什么?
p.s. I am aware that Twitter Bootstrap
works well with AngularJS
, however, for my project, Foundation is a requirement.
ps 我知道它Twitter Bootstrap
适用于AngularJS
,但是,对于我的项目,Foundation 是必需的。
Thanks,
Iraklis
谢谢,
伊拉克利斯
回答by sorich87
We recently adapted most Angular UI Bootstrap components for use with the Foundation CSS and open sourced the code: http://pineconellc.github.io/angular-foundation/
我们最近改编了大多数 Angular UI Bootstrap 组件以与 Foundation CSS 一起使用并开源代码:http: //pineconellc.github.io/angular-foundation/
回答by Thomas
The Angular-UI project provides deep integration of Twitter Bootstrap and AngularJS. That does not mean that Foundation Zurb and AngularJS does not work well together.
Angular-UI 项目提供了 Twitter Bootstrap 和 AngularJS 的深度集成。这并不意味着 Foundation Zurb 和 AngularJS 不能很好地协同工作。
With Zurb you have higher integration effort than with a ready-baked framework if you stick to standard components. At the time you need additional components you have to do the integration yourself anyway.
如果您坚持使用标准组件,与使用现成的框架相比,使用 Zurb 需要更多的集成工作。当您需要其他组件时,无论如何您都必须自己进行集成。
This is the same for other Javascript frameworks like Ember, btw.
这对于其他 Javascript 框架(如 Ember,顺便说一句)也是一样的。
回答by Nat Wallbank
I've been using AngularJS with Foundation 4 without any problems for a while now - as others have said, you need to do a bit more work yourself but it's not a big deal.
我在 Foundation 4 中使用 AngularJS 已经有一段时间了,没有任何问题——正如其他人所说,你需要自己做更多的工作,但这没什么大不了的。
In saying that, I've just upgraded to Foundation 5 and it's broken my Reveal provider for AngularJS (won't close)!
也就是说,我刚刚升级到 Foundation 5,它破坏了我的 AngularJS Reveal 提供程序(不会关闭)!
回答by user1632989
Yes, http://pineconellc.github.io/angular-foundation/is evolving over the time, and now you have very less distance between bootstrap and foundation in terms of angular integration, and also plenty of documentation on Foundation site
是的,http://pineconellc.github.io/angular-foundation/正在随着时间的推移而发展,现在就角度集成而言,引导程序和基础之间的距离非常小,而且 Foundation 站点上的文档也很多
http://foundation.zurb.com/sites/docs/can help you get the things done.
http://foundation.zurb.com/sites/docs/可以帮助您完成任务。