docs(toh-5/dart): fix dashboard_component regions (#2947)

Fixes https://github.com/dart-lang/site-webdev/issues/203
This commit is contained in:
Patrice Chalin 2016-12-07 13:05:34 -08:00 committed by Kathy Walrath
parent cfaeea0622
commit cd7b4d5188
2 changed files with 5 additions and 7 deletions

View File

@ -1,6 +1,5 @@
// #docplaster // #docplaster
// #docregion // #docregion , imports
// #docregion imports
import 'dart:async'; import 'dart:async';
import 'package:angular2/core.dart'; import 'package:angular2/core.dart';
@ -15,16 +14,16 @@ import 'hero_service.dart';
// #docregion metadata // #docregion metadata
@Component( @Component(
selector: 'my-dashboard', selector: 'my-dashboard',
// #docregion templateUrl
templateUrl: 'dashboard_component.html', templateUrl: 'dashboard_component.html',
// #enddocregion templateUrl // #enddocregion metadata
// #docregion css // #docregion css
styleUrls: const ['dashboard_component.css'], styleUrls: const ['dashboard_component.css'],
// #enddocregion css // #enddocregion css
// #docregion metadata
directives: const [ROUTER_DIRECTIVES], directives: const [ROUTER_DIRECTIVES],
) )
// #enddocregion metadata // #enddocregion metadata
// #docregion class, component // #docregion class
class DashboardComponent implements OnInit { class DashboardComponent implements OnInit {
List<Hero> heroes; List<Hero> heroes;

View File

@ -1,6 +1,5 @@
// #docplaster // #docplaster
// #docregion // #docregion , imports
// #docregion imports
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { Hero } from './hero'; import { Hero } from './hero';