32 lines
835 B
Dart
32 lines
835 B
Dart
|
// #docplaster
|
||
|
// #docregion
|
||
|
import "package:angular2/core.dart" show Component;
|
||
|
|
||
|
import "toh/hero_list_component.dart" show HeroListComponent;
|
||
|
import "wiki/wiki_component.dart" show WikiComponent;
|
||
|
import "wiki/wiki_smart_component.dart" show WikiSmartComponent;
|
||
|
|
||
|
@Component(
|
||
|
selector: "my-app",
|
||
|
template: '''
|
||
|
<hero-list></hero-list>
|
||
|
<my-wiki></my-wiki>
|
||
|
<my-wiki-smart></my-wiki-smart>
|
||
|
''',
|
||
|
// #enddocregion
|
||
|
/*
|
||
|
// #docregion http-providers
|
||
|
providers: const [
|
||
|
// in-memory web api provider
|
||
|
const Provider(BrowserClient,
|
||
|
useFactory: HttpClientBackendServiceFactory, deps: const [])],
|
||
|
// #enddocregion http-providers
|
||
|
*/
|
||
|
// #docregion
|
||
|
directives: const [
|
||
|
HeroListComponent,
|
||
|
WikiComponent,
|
||
|
WikiSmartComponent
|
||
|
])
|
||
|
class AppComponent {}
|