Reputation: 58796
How can the Google Closure UI Library be used with Google DART?
Upvotes: 1
Views: 843
Reputation: 76283
You can use the js package to use any Js library. Have a look at Using JavaScript from Dart: The js Library to know how to use it.
Upvotes: 1
Reputation: 14398
Although at present, you can't use the closure libraries directly, some effort is underway to port some of the more useful libraries, for example, the crypto libraries are here: http://code.google.com/p/dart-crypto-lib/
Upvotes: 1
Reputation: 5468
Dart has no facility for using JavaScript libraries. This is by design as Dart is intended to target both the Dart VM and Dart translated to JS. It is possible to workaround this to some extent by using message passing between iFrames and web workers.
Upvotes: 2