From 6586ea37cb4e4852c3ce316621bf19518f657c3b Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Wed, 7 Dec 2016 12:30:03 -0800 Subject: [PATCH] docs(toh-5/dart): fix dashboard_component regions Fixes https://github.com/dart-lang/site-webdev/issues/203 --- .../_examples/toh-5/dart/lib/dashboard_component.dart | 9 ++++----- .../docs/_examples/toh-5/ts/app/dashboard.component.ts | 3 +-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/public/docs/_examples/toh-5/dart/lib/dashboard_component.dart b/public/docs/_examples/toh-5/dart/lib/dashboard_component.dart index 1731bf4d0e..40dc1a4694 100644 --- a/public/docs/_examples/toh-5/dart/lib/dashboard_component.dart +++ b/public/docs/_examples/toh-5/dart/lib/dashboard_component.dart @@ -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 heroes; diff --git a/public/docs/_examples/toh-5/ts/app/dashboard.component.ts b/public/docs/_examples/toh-5/ts/app/dashboard.component.ts index 9311a74395..3ca1630f70 100644 --- a/public/docs/_examples/toh-5/ts/app/dashboard.component.ts +++ b/public/docs/_examples/toh-5/ts/app/dashboard.component.ts @@ -1,6 +1,5 @@ // #docplaster -// #docregion -// #docregion imports +// #docregion , imports import { Component, OnInit } from '@angular/core'; import { Hero } from './hero';