- Dart:Scalable Application Development
- Davy Mitchell Sergey Akopkokhyants Ivo Balbaert
- 180字
- 2021-07-09 18:56:17
Building web interfaces with Dart
The dart:html
package is not the only option for building web interfaces with Dart. The main contenders are Polymer and Angular:
- Polymer (https://www.polymer-project.org/) is a JavaScript framework for creating reusable web components (using the Web Component standard) that are encapsulated and inter-operable. They take the form of custom HTML elements. For example, the dialogs in this chapter could be made into web components. To use them in a page, we would use the tags
<DialogConfirm>
and<DialogWordCount>
, which would avoid a set of nesteddiv
elements.Polymer.dart
is the Dart version of the framework and is available frompub
. - Angular (https://angularjs.org/) is a framework for dynamic data views and is a giant in the JavaScript world. Again, there is a Dart version, called
Angular.dart
. The forthcoming Angular 2 will be written in Typescript and will support both JavaScript and Dart.
Whichever framework or package is chosen, it is likely to use dart:html
classes at some point, so it is worthwhile to be familiar with them. Not every developer or application needs a framework, so be pragmatic!
推薦閱讀
- 機器學習系統:設計和實現
- NLTK基礎教程:用NLTK和Python庫構建機器學習應用
- C語言程序設計實訓教程
- 云原生Spring實戰
- Learning Informatica PowerCenter 10.x(Second Edition)
- Mastering Unity Shaders and Effects
- Access 2016數據庫管
- 快速念咒:MySQL入門指南與進階實戰
- Visual Basic程序設計
- SQL Server與JSP動態網站開發
- 機器學習與R語言實戰
- Getting Started with React Native
- 深入剖析Java虛擬機:源碼剖析與實例詳解(基礎卷)
- Regression Analysis with Python
- 寫給程序員的Python教程