/ basic

Hello world in Dart

This is a simple way to render text using dart instead of instead HTML.


The html required to print the message is:
<span id="title"></span>


The code you need to insert into the main void is:
query('#title').text = 'Hello world';

Compile your application by pressing CTRL-R this will open your application in a chromium window.


Your output should display the text "Hello World"


If your project is a chrome app when running ensure that you are compiling the manifest.json instead of the .dart or .html