-
Notifications
You must be signed in to change notification settings - Fork 705
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #5438 --------- Co-authored-by: Srujan Gaddam <[email protected]> Co-authored-by: Parker Lougheed <[email protected]> Co-authored-by: sigmundch <[email protected]>
- Loading branch information
1 parent
6c5d2d7
commit 4a2fd1b
Showing
16 changed files
with
1,361 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
title: JavaScript interoperability | ||
short-title: JS interop | ||
description: Integrate JavaScript code into your Dart web app. | ||
--- | ||
|
||
The [Dart web platform](/overview#web-platform) supports communication with | ||
JavaScript apps and libraries, as well as browser APIs, using `dart:js_interop`. | ||
|
||
Web developers can benefit from using external JS libraries in their Dart code, | ||
without having to rewrite anything in Dart. | ||
|
||
{% comment %} | ||
## Why use JS interop? | ||
|
||
TODO: Should we have a paragraph here explaining the benefits of using interop? | ||
{% endcomment %} | ||
|
||
## Overview | ||
|
||
For information on how to write and use JavaScript interop: | ||
* [Usage reference] | ||
* [JS types reference] | ||
|
||
For information on interacting with web APIs: | ||
* [`package:web` and migration] | ||
|
||
For tutorials and help: | ||
* [How to mock JavaScript interop objects] | ||
|
||
For information on previous JavaScript interop libraries: | ||
* [Past JS interop] | ||
|
||
For additional documentation on JavaScript interop: | ||
* [`dart:js_interop` API reference] | ||
* [`dart:js_interop_unsafe` API reference] | ||
|
||
[Usage reference]: /interop/js-interop/usage | ||
[JS types reference]: /interop/js-interop/js-types | ||
[`package:web` and migration]: /interop/js-interop/package-web | ||
[How to mock JavaScript interop objects]: /interop/js-interop/mock | ||
[Past JS interop]: /interop/js-interop/past-js-interop | ||
[`dart:js_interop` API reference]: https://api.dart.dev/dev/dart-js_interop/dart-js_interop-library.html | ||
[`dart:js_interop_unsafe` API reference]: https://api.dart.dev/dev/dart-js_interop_unsafe/dart-js_interop_unsafe-library.html |
Oops, something went wrong.