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

View File

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