O'Reilly logo

Web Programming with Dart by Patricia Juberias, Moises Belchin

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 4

image

Using Pub and dart2js to Compile Applications to JavaScript

You’ve already created your first Dart application, you used the sample content that Dart Editor loads by default, and you have added new features. You added color every time you clicked on the paragraph element.

Your application runs perfectly in Dartium, but you want everyone to enjoy it. It’s time to talk about the Dart to JavaScript code compilation.

Currently. only Dartium can run Dart applications because it’s the only web browser that has the Dart Virtual Machine (Dart VM) included. In the future Dart will run natively on other browsers. Soon Dart applications can run ...

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