1

Assumed that I code some type of library and convert it to js (per dart2js). How can I access the prototypes to create objects? What is right way to resolve dart-namespaces?

NaN
  • 3,501
  • 8
  • 44
  • 77

1 Answers1

1

You can expose functions to JavaScript

see also js library

I don't think there is a way to expose classes to JavaScript, but I'm not sure about this.

Community
  • 1
  • 1
Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567
  • thx for your answer, but I am rather looking for a way to use js (dart2js output) within js projects. And your links describe possibilities to use js within dart. – NaN Mar 01 '14 at 10:20
  • But each of the links contains an example how to expose a Dart function to JavaScript so that the Dart function can be called from JS. I haven't seen anything that goes more in the direction you want. – Günter Zöchbauer Mar 01 '14 at 10:22