Using Dart to Interact with HTML
Dart was originally designed primarily for client-side web development. In this chapter, we take Dart to the Web in a big way. You will learn how to use Dart to interact with every part of a web page. There are multiple popular libraries for doing client-side web development with Dart, including two popular Google-sponsored projects: Polymer.dart and Angular.dart. In this book, we will be using the more primitive dart:html library, which is included in the base Dart SDK. It provides a good jumping-off point for the study of other libraries. Take note that when you create a new project in Dart Editor, you should be selecting the project type “Web application” and not “Web application (using the Polymer library),” as you work through this chapter and the rest of the book.