Overview: Web Libraries
What kind of support is available for web programming in Dart? Where can you learn more?
For examples of using package:js, see the following source code:
- Dart wrapper library for Firebase
- Example includes lib/quill.dart generated from Quill.js
- Dart API for Chart.js
The GUI for a web app is programmed in HTML and is represented in the browser by a tree structure called the Document Object Model (DOM). Understanding how the DOM works is important for developing a deeper understanding of HTML concepts. Use the dart:html library to modify the DOM programmatically.
Once you’re ready to develop complex applications that support event handling and dependency injection, for example, you’ll want a more powerful solution, such as Angular 2 for Dart.
The low-level HTML tutorials have further information on how to include a Dart script in an HTML page, and how to add and remove elements from a web page.
You’re free to use whatever open-source libraries you like when creating web apps. For example, you can use Polymer elements.
Also see the FAQ.