Re: How to launch dart web application without Editor and without to translating to js?

87 views
Skip to first unread message
Message has been deleted

Robert Beeger

unread,
Aug 10, 2012, 5:22:02 PM8/10/12
to mi...@dartlang.org
You need a Chromium build with an included Dart VM. Here it's called Dartium and it's included in the Dart Editor builds. Even if you don't want to use Dart Editor, in my opinion getting one of those builds is the best way to get a ready Dartium.
Then you just load the html-file that references your dart application and you're finished.

A minimum html file for a dart application looks like this:
<!DOCTYPE html>

<html>
  <head>
    <title>tests</title>
  </head>
  <body>
    <script type="application/dart" src="app.dart"></script>
  </body>
</html>

Don't make the mistake of removing the dart.js line. Dartium will not start your application if it's not there. This line of code will not only try to load app.dart.js in any other browser than Dartium, it will also somehow make the Dart VM in Dartium start the app.

Cheers,
  Robert

Am Freitag, 10. August 2012 22:11:03 UTC+2 schrieb mezoni:
Is there any tools to launch dart web application?
Message has been deleted

Chris Buckett

unread,
Aug 11, 2012, 4:52:50 AM8/11/12
to mi...@dartlang.org
You can download the dart.js from the URL above to your local machine - it doesn't need to be on the web.

Cheers,
Chris.

On Saturday, 11 August 2012 09:09:51 UTC+1, mezoni wrote:
Thanks. It works.
But there is one cons. It not works without Internet Connection.
This solves the problem only half.
Reply all
Reply to author
Forward
0 new messages