example(dart/toh-5): add extra region for use in API docs (#2664)
This commit is contained in:
parent
ea7dff4d89
commit
cfa7ec76f8
@ -28,7 +28,7 @@ import 'heroes_component.dart';
|
|||||||
directives: const [ROUTER_DIRECTIVES],
|
directives: const [ROUTER_DIRECTIVES],
|
||||||
providers: const [HeroService, ROUTER_PROVIDERS])
|
providers: const [HeroService, ROUTER_PROVIDERS])
|
||||||
// #enddocregion directives-and-providers
|
// #enddocregion directives-and-providers
|
||||||
// #docregion heroes
|
// #docregion heroes, routes
|
||||||
@RouteConfig(const [
|
@RouteConfig(const [
|
||||||
// #enddocregion heroes
|
// #enddocregion heroes
|
||||||
// #docregion dashboard
|
// #docregion dashboard
|
||||||
@ -45,7 +45,7 @@ import 'heroes_component.dart';
|
|||||||
// #docregion heroes
|
// #docregion heroes
|
||||||
const Route(path: '/heroes', name: 'Heroes', component: HeroesComponent)
|
const Route(path: '/heroes', name: 'Heroes', component: HeroesComponent)
|
||||||
])
|
])
|
||||||
// #enddocregion heroes
|
// #enddocregion heroes, routes
|
||||||
class AppComponent {
|
class AppComponent {
|
||||||
String title = 'Tour of Heroes';
|
String title = 'Tour of Heroes';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user