- 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!
推薦閱讀
- Android應(yīng)用程序開發(fā)與典型案例
- Learning C# by Developing Games with Unity 2020
- PHP 從入門到項(xiàng)目實(shí)踐(超值版)
- SQL Server 2012數(shù)據(jù)庫技術(shù)及應(yīng)用(微課版·第5版)
- Mastering C# Concurrency
- Python Geospatial Development(Second Edition)
- Xamarin.Forms Projects
- AutoCAD VBA參數(shù)化繪圖程序開發(fā)與實(shí)戰(zhàn)編碼
- Learning Hunk
- Spring Boot Cookbook
- C/C++程序員面試指南
- C#開發(fā)案例精粹
- Test-Driven Machine Learning
- JavaScript程序設(shè)計(jì)(第2版)
- Mastering Adobe Captivate 7