Set up Basic AngularDart Structure

This commit is contained in:
Marty Oehme 2018-07-07 15:46:40 +02:00
parent fffcc3fbae
commit f3dfc3b368
7 changed files with 193 additions and 32 deletions

View file

@ -2,11 +2,15 @@ import 'dart:html' as html;
import 'package:rules_of_living/App.dart';
import 'package:angular/angular.dart';
import 'package:rules_of_living/app_component.template.dart' as ng;
html.CanvasElement el;
App engine;
void main() {
runApp(ng.AppComponentNgFactory);
el = new html.CanvasElement(width: 500, height: 500);
html.querySelector('#output').append(el);
engine = new App(el);