O'Reilly logo

Learning Dart - Second Edition by Ivo Balbaert

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Handling DOM in a New Way

A web application runs inside the browser that hosts the app; a single-page web app has become more and more common these days. This page may already contain some HTML elements or nodes, such as <div> and <input>, and your Dart code will manipulate and change them, but it can also create new elements. The user interface may even be entirely built up through the code. Besides this, Dart is responsible for implementing interactivity with the user (the handling of events, such as button clicks) and the dynamic behavior of the program, for example, fetching data from a server and showing it on the screen. In the previous chapters, we explored some simple examples of these techniques. Compared to JavaScript, Dart ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required