Set up Basic AngularDart Structure
This commit is contained in:
parent
fffcc3fbae
commit
f3dfc3b368
7 changed files with 193 additions and 32 deletions
21
lib/app_component.dart
Normal file
21
lib/app_component.dart
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import 'package:angular/angular.dart';
|
||||
|
||||
@Component(
|
||||
selector: 'my-app',
|
||||
template: '''
|
||||
<h1>Hello {{name}}</h1>
|
||||
<div id="output">
|
||||
<canvas id="canvas"></canvas>
|
||||
</div>
|
||||
<div id="controls">
|
||||
<button id="run">Run</button>
|
||||
<button id="step">Step</button>
|
||||
<button id="reset">Reset</button>
|
||||
<button id="random">Random</button>
|
||||
<input id="speed" title="Speed" value="1">
|
||||
</div>
|
||||
''',
|
||||
)
|
||||
class AppComponent {
|
||||
var name = 'Darth Marty';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue