parent
a92b864dfa
commit
b6919cff6b
3 changed files with 12 additions and 13 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import 'dart:html' as html;
|
||||
|
||||
import 'package:angular/angular.dart';
|
||||
import 'package:rules_of_living/service/control_service.dart';
|
||||
import 'package:rules_of_living/service/configuration_service.dart';
|
||||
|
||||
@Component(
|
||||
selector: 'gol-simulation',
|
||||
|
|
@ -10,9 +10,9 @@ import 'package:rules_of_living/service/control_service.dart';
|
|||
providers: [],
|
||||
)
|
||||
class SimulationComponent implements OnInit {
|
||||
final ControlService ctrl;
|
||||
final ConfigurationService config;
|
||||
|
||||
SimulationComponent(this.ctrl);
|
||||
SimulationComponent(this.config);
|
||||
|
||||
@override
|
||||
void ngOnInit() {
|
||||
|
|
@ -29,6 +29,6 @@ class SimulationComponent implements OnInit {
|
|||
|
||||
the canvas did not load correctly :(
|
||||
''', canvas.width / 2 - 50, canvas.height / 2);
|
||||
ctrl.canvas = canvas;
|
||||
config.canvas = canvas;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue