【问题标题】:Dart's Web Component vs Angular's DirectiveDart 的 Web 组件与 Angular 的指令
【发布时间】:2013-07-04 13:24:13
【问题描述】:

Dart's Web ComponentAngular's Directives 看起来它们的用途非常相似。有什么明显的区别吗?

【问题讨论】:

    标签: angularjs-directive dart dart-webui angular-dart


    【解决方案1】:

    它们确实有类似的目的。然而,Web 组件不是 Dart 的一部分,它们是浏览器的一部分。 Dart Web-UI 确实使用了 Web 组件 (http://www.w3.org/TR/2013/WD-components-intro-20130606/)。 AngularJS 计划将它们用于 2.0,可以在此处阅读:http://www.2ality.com/2013/05/web-components-angular-ember.html

    归结为很多功能是共享的。但是 Angular.js 有一个纯 JS 实现,而 Darts 的 Web-UI 使用了浏览器技术。

    Angular will use the underlying web platform features available to it 
    (e.g. Node.bind, template integration, Custom Elements, etc...)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-01-08
      • 2016-05-16
      • 1970-01-01
      • 2015-11-14
      • 1970-01-01
      • 2014-11-28
      • 2020-05-30
      • 2016-05-30
      相关资源
      最近更新 更多