簡體   English   中英

Dart的Web組件與Angular的指令

[英]Dart's Web Component vs Angular's Directive

Dart的Web組件Angular的指令看起來像是非常相似的目的。 有什么重大差異嗎?

它們確實用於類似的目的。 但是Web Components不是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...)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM