If we take into account the enormous amount of JavaScript code and libraries that exist, and are still being developed, it is very important that we have a simple way to use JavaScript code from within Dart applications, in particular to get access from Dart to the JavaScript code that is running in the same web page. The earliest attempts used window.postMessage
, and then a package called js
was built. Because of the huge importance of this topic, the Dart team now has provided us with a core library, dart:js
, to interoperate with JavaScript. This provides better performance, reduces the size of the compiled JavaScript file, and makes it also easier to use. Once dart:js
is ready, the package js
has been rewritten to use dart:js
under the covers.
DART Cookbook
By :
DART Cookbook
By:
Overview of this book
Table of Contents (18 chapters)
Dart Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Working with Dart Tools
Structuring, Testing, and Deploying an Application
Working with Data Types
Object Orientation
Handling Web Applications
Working with Files and Streams
Working with Web Servers
Working with Futures, Tasks, and Isolates
Working with Databases
Polymer Dart Recipes
Working with Angular Dart
Index
Customer Reviews