2016-05-18 00:25:41 -04:00
|
|
|
// #docplaster
|
|
|
|
// #docregion final
|
2016-05-20 20:14:37 -04:00
|
|
|
import 'package:angular2/core.dart';
|
2016-05-18 00:25:41 -04:00
|
|
|
// #docregion v1
|
2016-05-20 20:14:37 -04:00
|
|
|
import 'package:angular2/platform/browser.dart';
|
2016-05-18 00:25:41 -04:00
|
|
|
// #docregion http-providers
|
2016-05-20 20:14:37 -04:00
|
|
|
import 'package:http/browser_client.dart';
|
2016-05-18 00:25:41 -04:00
|
|
|
// #enddocregion http-providers
|
2016-03-28 16:30:03 -04:00
|
|
|
|
2016-05-18 00:25:41 -04:00
|
|
|
import 'package:server_communication/app_component.dart';
|
|
|
|
// #enddocregion v1
|
|
|
|
// #docregion in-mem-web-api-imports
|
|
|
|
import "package:server_communication/hero_data.dart";
|
2016-02-10 14:27:14 -05:00
|
|
|
|
2016-05-18 00:25:41 -04:00
|
|
|
// #enddocregion in-mem-web-api-imports
|
|
|
|
// #docregion in-mem-web-api-providers
|
|
|
|
void main() {
|
|
|
|
bootstrap(AppComponent, const [
|
|
|
|
// in-memory web api provider
|
|
|
|
const Provider(BrowserClient,
|
|
|
|
useFactory: HttpClientBackendServiceFactory, deps: const [])
|
|
|
|
// TODO: drop `deps` once fix lands for
|
|
|
|
// https://github.com/angular/angular/issues/5266
|
|
|
|
]);
|
2016-02-10 14:27:14 -05:00
|
|
|
}
|
2016-05-18 00:25:41 -04:00
|
|
|
// #enddocregion final, in-mem-web-api-providers
|
|
|
|
/*
|
|
|
|
// #docregion v1
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
bootstrap(AppComponent, const [BrowserClient]);
|
|
|
|
}
|
|
|
|
// #enddocregion v1
|
|
|
|
*/
|