HTML5,angularJS与封闭的编译器和/或封库 [英] html5, angularJS with closure compiler and/or closure library

查看:115
本文介绍了HTML5,angularJS与封闭的编译器和/或封库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我考虑HTML5,angularJS的数据绑定和也是谷歌关闭编译器和交互式Web应用程序关闭库。做那些工作,很好地在一起吗?不幸的是,似乎有到现在还没有详细的报告。

I'm considering html5, angularJS for data binding and also google closure compiler and the closure library for interactive web applications. Do those work nicely together? Unfortunately there seem to be no detailed reports up to now.

我有Adobe Flex的经​​验,但我是相当新的纯JS。所以问题可以被认为是从一个初学者的透视图。还有一个需要移植没有codeBase的,一切都将从头开始开发的。

I have adobe flex experience, but I'm fairly new to pure js. So the questions can be considered to be from a beginner's perspective. There is no codebase that needs to be ported, everything will be developed from scratch.


  1. 是任何人都成功地利用这个组合?

  2. 是否有任何的第一手报告?

  3. 请您推荐的个人技术,在这种情况下,还是有更好的办法结合起来?

  4. 是否有任何很好的例子,例如项目甚至教程(对于组合 - 而不是单项技术)?

  5. 任何陷阱初学者应该知道的?

  6. 是否有任何其他orthoganal technolgies,我也应该使用或至少考虑?

有些或多或少的相关链接,我已经找到:

Some more or less relevant links I already found:

推荐答案

关闭编译器

您绝对可以编译code(角本身编译Closure编译器),虽然你只能在这一点上用简单的优化。

You can definitely compile your code (Angular itself is compiled with Closure compiler), although you can only use simple optimizations at this point.

在一般我们要角与编译器一起玩好。

In general we want Angular to play well together with the compiler.

封库

有一帮谷歌内部的项目,使用库加上棱角分明。

There is a bunch of project inside Google, using the library together with Angular.

他们使用的依赖goog.provide()和goog.require()。还使用实用工具,比如goog.isString()或goog.inherits()是绝对简单的。

They use goog.provide() and goog.require() for dependencies. Also using the utilities like goog.isString() or goog.inherits() is absolutely straightforward.

使用封闭的UI组件可能需要一些额外的工作(虽然,再次,在使用它的项目)。

Using closure UI components might require some extra work (although, again, there are projects using it).

这篇关于HTML5,angularJS与封闭的编译器和/或封库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆