Connect Start Button through Angular
This commit is contained in:
parent
843dad6cbb
commit
96a5bd0cec
3 changed files with 14 additions and 8 deletions
|
|
@ -25,12 +25,6 @@ class App {
|
|||
|
||||
App(this.canvas) {
|
||||
_elapsed.start();
|
||||
var runBtn = html.querySelector("#run");
|
||||
runBtn.onClick.forEach((html.MouseEvent mouse) {
|
||||
running = !running;
|
||||
if(running) runBtn.innerHtml = "Stop";
|
||||
if(!running) runBtn.innerHtml = "Start";
|
||||
});
|
||||
}
|
||||
|
||||
void process(num now) {
|
||||
|
|
@ -56,7 +50,7 @@ class App {
|
|||
|
||||
void update() {
|
||||
// print("updating");
|
||||
if (running) grid.update();
|
||||
if (running == true) grid.update();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue