2016-06-03 14:16:46 -04:00
|
|
|
// **WARNING**
|
|
|
|
// To try out this version of the app, ensure that you update:
|
|
|
|
// - web/index.html
|
|
|
|
// - pubspec.yaml
|
|
|
|
// to refer to this file instead of main.dart
|
|
|
|
|
2016-02-06 17:02:44 -05:00
|
|
|
import 'package:angular2/platform/browser.dart';
|
|
|
|
|
2016-06-03 14:16:46 -04:00
|
|
|
import 'package:dependency_injection/app_component_1.dart';
|
|
|
|
import 'package:dependency_injection/heroes/hero_service_1.dart';
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
bootstrap(AppComponent);
|
|
|
|
}
|
|
|
|
|
|
|
|
void main_alt() {
|
|
|
|
// #docregion bootstrap-discouraged
|
2016-03-04 01:50:42 -05:00
|
|
|
bootstrap(AppComponent,
|
2016-06-03 14:16:46 -04:00
|
|
|
[HeroService]); // DISCOURAGED (but works)
|
|
|
|
// #enddocregion bootstrap-discouraged
|
2016-03-04 01:50:42 -05:00
|
|
|
}
|