changes) {
- final newWithTrackBy = _extractChildren(changes);
- final isSame = newWithTrackBy.fold(true, (bool isSame, Element elt) {
- return isSame && _oldWithTrackBy.contains(elt);
- });
-
- if (!isSame) {
- _oldWithTrackBy = newWithTrackBy;
- this.heroesWithTrackByChangeCount++;
- }
- });
- }
- }
- ///////////////////
-}
diff --git a/public/docs/_examples/template-syntax/dart/lib/app_component.html b/public/docs/_examples/template-syntax/dart/lib/app_component.html
deleted file mode 100644
index 3255a02ff6..0000000000
--- a/public/docs/_examples/template-syntax/dart/lib/app_component.html
+++ /dev/null
@@ -1,827 +0,0 @@
-
-
-Template Syntax
-Interpolation
-Mental Model
-Buttons
-Properties vs. Attributes
-
-Property Binding
-
-
-Event Binding
-Two-way Binding
-
-Directives
-
-
-* prefix and <template>
-Template reference variables
-Inputs and outputs
-Pipes
-Safe navigation operator ?.
-Enums
-
-
-
Interpolation
-
-
-My current hero is {{currentHero.firstName}}
-
-
-
-
- {{title}}
-
-
-
-
-
-
-The sum of 1 + 1 is {{1 + 1}}
-
-
-
-
-The sum of 1 + 1 is not {{1 + 1 + getVal()}}
-
-
-top
-
-
-
New Mental Model
-
-
-
-
-Mental Model
-
-
-
-
-
-
-
-
-
Mental Model
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-click me
-
-{{clicked}}
-
-
-
-
-
-
- Hero Name: {{heroName}}
-
-
-
-
-
-
-
-
-
-Special
-
-
-
-
-
-
-top
-
-
-
Property vs. Attribute (img examples)
-
-
-
-
-
-
-
-
-
-top
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-top
-
-
-
Property Binding
-
-
-
-
-
-
-
-
-[ngClass] binding to the classes property
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- is the interpolated image.
- is the property bound image.
-
-"{{title}}" is the interpolated title.
-"" is the property bound title.
-
-
-
-"{{evilTitle}}" is the interpolated evil title.
-"" is the property bound evil title.
-
-
-top
-
-
-
Attribute Binding
-
-
-
-
-
- One-Two |
-
-
-
- Five | Six |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-top
-
-
-
Class Binding
-
-
-
-Bad curly special
-
-
-
-
-Bad curly
-
-
-
-
-
-The class binding is special
-
-
-
-This one is not so special
-
-
-This class binding is special too
-
-top
-
-
-
Style Binding
-
-
-
-
-
-
-
-
-
-
-
-top
-
-
-
Event Binding
-
-
-
-
-
-
-
-
-
-
-
-
-
-
click with myClick
-
-
-{{clickMessage}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-Click me
-
Click me too!
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-top
-
-
Two-way Binding
-
-
-
-
Resizable Text
-
-
-
-
-
-
De-sugared two-way binding
-
-
-
-
-
-
-top
-
-
-
NgModel (two-way) Binding
-
-Result: {{currentHero.firstName}}
-
-
-
-
-without NgModel
-
-
-
-
-[(ngModel)]
-
-
-
-
-bindon-ngModel
-
-
-
-
-(ngModelChange) = "...firstName=$event"
-
-
-
-
-(ngModelChange) = "setUpperCaseFirstName($event)"
-
-
-top
-
-
-
NgClass Binding
-
-setClasses returns {{setClasses() | json}}
-
-This div is saveable and special
-
-
- After setClasses(), the classes are "{{classDiv.className}}"
-
-
-
-
-This div is special
-
-Bad curly special
-Curly special
-
-top
-
-
-
NgStyle Binding
-
-
-
-
-
-
-
- This div is x-large.
-
-
-
-Use setStyles() - CSS property names
-setStyles returns {{setStyles()}}.
-
-
- This div is italic, normal weight, and extra large (24px).
-
-
-After setStyles(), the DOM confirms that the styles are
-
- {{getStyles(styleDiv)}}
- .
-
-
-
-
-top
-
-
-
NgIf Binding
-
-
-Hello, {{currentHero.firstName}}
-
-
-
-
-Hello, {{nullHero.firstName}}
-
-
-
-
-
-
-
-Add {{currentHero.firstName}} with template
-
-
-Hero Detail removed from DOM (via template) because isActive is false
-
-
-
-
-
-
-Show with class
-Hide with class
-
-
-
-
-Show with style
-Hide with style
-
-
-top
-
-
-
NgSwitch Binding
-
-
-
-
-
Pick a toe
-
- You picked ...
-
-
-
-
-
-
- Eenie
- Meanie
- Miney
- Moe
- other
-
-
-
- Eenie
- Meanie
- Miney
- Moe
- other
-
-
-
-
-
-
-
-top
-
-
-
NgFor Binding
-
-
-
-
{{hero.fullName}}
-
-
-
-
-
-
-
-
-
-
-
-top
-
-NgFor with index
-with semi-colon separator
-
-
-
{{i + 1}} - {{hero.fullName}}
-
-
-
-with comma separator
-
-
-
{{i + 1}} - {{hero.fullName}}
-
-
-top
-
-NgForTrackBy
-
-First hero:
-
-without trackBy
-
-
-
({{hero.id}}) {{hero.fullName}}
-
-
-
- Hero DOM elements change #{{heroesNoTrackByChangeCount}} without trackBy
-
-
-with trackBy and semi-colon separator
-
-
-
({{hero.id}}) {{hero.fullName}}
-
-
-
- Hero DOM elements change #{{heroesWithTrackByChangeCount}} with trackBy
-
-
-with trackBy and comma separator
-
-
({{hero.id}}) {{hero.fullName}}
-
-
-with trackBy and space separator
-
-
({{hero.id}}) {{hero.fullName}}
-
-
-with *ngForTrackBy
-
-
-
({{hero.id}}) {{hero.fullName}}
-
-
-
-with generic trackById function
-
-
-
({{hero.id}}) {{hero.fullName}}
-
-
-
-top
-
-
-
* prefix and <template>
-
-*ngIf expansion
-*ngIf
-
-
-
-
-expand to template = "..."
-
-
-
-
-expand to <template>
-
-
-
-
-
-
-*ngFor expansion
-*ngFor
-
-
-
-
-
-expand to template = "..."
-
-
-
-
-
-
-
-expand to <template>
-
-
-
-
-
-
-
-
-
-top
-
-
-
Template reference variables
-
-
-
-
-
-
-
-
-
-
-
-Example Form
-
-
-
-
-
-
-
-
-
-
-top
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-myClick2
-{{clickMessage2}}
-
-top
-
-
-
Pipes
-
-
-Title through uppercase pipe: {{title | uppercase}}
-
-
-
-
-
- Title through a pipe chain:
- {{title | uppercase | lowercase}}
-
-
-
-
-
-Birthdate: {{currentHero?.birthdate | date:'longDate'}}
-
-
-
-{{currentHero}}
-
-
-Birthdate: {{(currentHero?.birthdate | date:'longDate') | uppercase}}
-
-
-
- {{product['price'] | currency:'USD':true}}
-
-
-top
-
-
-
Safe navigation operator ?.
-
-
-
- The title is {{title}}
-
-
-
-
-
- The current hero's name is {{currentHero?.firstName}}
-
-
-
-
-
- The current hero's name is {{currentHero.firstName}}
-
-
-
-
-
-
-
-
-The null hero's name is {{nullHero.firstName}}
-
-
-
-
-
-
-
- The null hero's name is {{nullHero?.firstName}}
-
-
-
-
-top
-
-
-
-
Enums in binding
-
-
-
- The name of the Color.red enum is {{colorRed}}.
- The current color is {{color}} and its index is {{color.index}}.
-
-
-
-
-top
diff --git a/public/docs/_examples/template-syntax/dart/lib/click_directive.dart b/public/docs/_examples/template-syntax/dart/lib/click_directive.dart
deleted file mode 100644
index 101b9eb5c6..0000000000
--- a/public/docs/_examples/template-syntax/dart/lib/click_directive.dart
+++ /dev/null
@@ -1,42 +0,0 @@
-// #docplaster
-import 'dart:html';
-
-import 'package:angular2/core.dart';
-
-@Directive(selector: '[myClick]')
-class MyClickDirective {
- // #docregion output-myClick
- // @Output(alias) [type info] propertyName = ...
- @Output('myClick') final EventEmitter clicks = new EventEmitter();
-
- // #enddocregion output-myClick
- bool _toggle = false;
-
- MyClickDirective(ElementRef el) {
- Element nativeEl = el.nativeElement;
- nativeEl.onClick.listen((Event e) {
- _toggle = !_toggle;
- clicks.emit(_toggle ? 'Click!' : '');
- });
- }
-}
-
-// #docregion output-myClick2
-@Directive(
-// #enddocregion output-myClick2
- selector: '[myClick2]',
-// #docregion output-myClick2
- // ...
- outputs: const ['clicks:myClick']) // propertyName:alias
-// #enddocregion output-myClick2
-class MyClickDirective2 {
- final EventEmitter clicks = new EventEmitter();
- bool _toggle = false;
-
- MyClickDirective2(ElementRef el) {
- el.nativeElement.onClick.listen((Event e) {
- _toggle = !_toggle;
- clicks.emit(_toggle ? 'Click2!' : '');
- });
- }
-}
diff --git a/public/docs/_examples/template-syntax/dart/lib/hero.dart b/public/docs/_examples/template-syntax/dart/lib/hero.dart
deleted file mode 100644
index d366a23c19..0000000000
--- a/public/docs/_examples/template-syntax/dart/lib/hero.dart
+++ /dev/null
@@ -1,37 +0,0 @@
-// #docregion
-class Hero {
- static int _nextId = 1;
-
- final int id;
- String firstName;
- String lastName;
- DateTime birthdate;
- String url;
- int rate = 100;
-
- Hero(this.firstName,
- {this.lastName, this.birthdate, this.url, this.rate, int id})
- : this.id = id ?? _nextId++;
-
- String get fullName {
- if (lastName == null) return firstName;
- return '$firstName $lastName';
- }
-
- Hero clone() => new Hero(firstName,
- lastName: lastName, birthdate: birthdate, url: url, rate: rate, id: id);
-
- @override String toString() => '$fullName (rate: $rate)';
-}
-
-final List mockHeroes = [
- new Hero('Hercules',
- lastName: 'Son of Zeus',
- birthdate: new DateTime(1970, 2, 25),
- url: 'http://www.imdb.com/title/tt0065832/',
- rate: 325),
- new Hero('eenie', lastName: 'toe'),
- new Hero('Meanie', lastName: 'Toe'),
- new Hero('Miny', lastName: 'Toe'),
- new Hero('Moe', lastName: 'Toe')
-];
diff --git a/public/docs/_examples/template-syntax/dart/lib/hero_detail_component.dart b/public/docs/_examples/template-syntax/dart/lib/hero_detail_component.dart
deleted file mode 100644
index 5eb6da1c76..0000000000
--- a/public/docs/_examples/template-syntax/dart/lib/hero_detail_component.dart
+++ /dev/null
@@ -1,80 +0,0 @@
-// #docplaster
-// #docregion
-import 'package:angular2/core.dart';
-
-import 'hero.dart';
-
-// #docregion input-output-2
-@Component(
-// #enddocregion input-output-2
- selector: 'hero-detail',
-// #docregion input-output-2
- // ...
- inputs: const ['hero'],
- outputs: const ['deleteRequest'],
-// #enddocregion input-output-2
- styles: const [
- 'button { margin-left: 8px} div {margin: 8px 0} img {height:24px}'
- ],
-// #docregion template-1
- template: '''
-
-
-
- {{prefix}} {{hero?.fullName}}
-
-
-
'''
-// #enddocregion template-1
-// #docregion input-output-2
- )
-// #enddocregion input-output-2
-class HeroDetailComponent {
- Hero hero = new Hero('Zzzzzzzz'); // default sleeping hero
- String heroImageUrl = 'assets/images/hero.png';
- String lineThrough = ''; // PENDING: use null instead?
- @Input() String prefix = '';
-
- // #docregion deleteRequest
- // This component make a request but it can't actually delete a hero.
- final deleteRequest = new EventEmitter();
-
- void delete() {
- deleteRequest.emit(hero);
- // #enddocregion deleteRequest
- lineThrough = (lineThrough == '') ? 'line-through' : '';
- // #docregion deleteRequest
- }
- // #enddocregion deleteRequest
-}
-
-@Component(
- selector: 'big-hero-detail',
- /*
- inputs: ['hero'],
- outputs: ['deleteRequest'],
- */
- template: '''
-
-
-
{{hero?.fullName}}
-
First: {{hero?.firstName}}
-
Last: {{hero?.lastName}}
-
Birthdate: {{hero?.birthdate | date:'longDate'}}
-
-
Rate/hr: {{hero?.rate | currency:'EUR'}}
-
-
-
''')
-class BigHeroDetailComponent extends HeroDetailComponent {
- // #docregion input-output-1
- @Input() Hero hero;
- @Output() final deleteRequest = new EventEmitter();
- // #enddocregion input-output-1
-
- String get heroImageUrl => 'assets/images/hero.png';
-
- @override void delete() {
- deleteRequest.emit(hero);
- }
-}
diff --git a/public/docs/_examples/template-syntax/dart/lib/sizer_component.dart b/public/docs/_examples/template-syntax/dart/lib/sizer_component.dart
deleted file mode 100644
index 84dbc1d9ff..0000000000
--- a/public/docs/_examples/template-syntax/dart/lib/sizer_component.dart
+++ /dev/null
@@ -1,30 +0,0 @@
-// #docregion
-import 'dart:math';
-import 'package:angular2/core.dart';
-
-@Component(
- selector: 'my-sizer',
- template: '''
-
-
-
-
-
''')
-class MySizerComponent {
- static final defaultPxSize = 14;
-
- @Input()
- String size;
-
- @Output()
- var sizeChange = new EventEmitter();
-
- void dec() => resize(-1);
- void inc() => resize(1);
-
- void resize(num delta) {
- final numSize = num.parse(size, (_) => defaultPxSize);
- size = min(40, max(8, numSize + delta)).toString();
- sizeChange.emit(size);
- }
-}
diff --git a/public/docs/_examples/template-syntax/dart/pubspec.yaml b/public/docs/_examples/template-syntax/dart/pubspec.yaml
deleted file mode 100644
index 44a8cc832f..0000000000
--- a/public/docs/_examples/template-syntax/dart/pubspec.yaml
+++ /dev/null
@@ -1,19 +0,0 @@
-# #docregion
-name: template_syntax
-description: Template Syntax
-version: 0.0.1
-environment:
- sdk: '>=1.19.0 <2.0.0'
-dependencies:
- angular2: ^2.2.0
-dev_dependencies:
- browser: ^0.10.0
- dart_to_js_script_rewriter: ^1.0.1
-transformers:
-- angular2:
- platform_directives:
- - 'package:angular2/common.dart#COMMON_DIRECTIVES'
- platform_pipes:
- - 'package:angular2/common.dart#COMMON_PIPES'
- entry_points: web/main.dart
-- dart_to_js_script_rewriter
diff --git a/public/docs/_examples/template-syntax/dart/web/assets/images/hero.png b/public/docs/_examples/template-syntax/dart/web/assets/images/hero.png
deleted file mode 100644
index 2a128ac367..0000000000
Binary files a/public/docs/_examples/template-syntax/dart/web/assets/images/hero.png and /dev/null differ
diff --git a/public/docs/_examples/template-syntax/dart/web/assets/images/ng-logo.png b/public/docs/_examples/template-syntax/dart/web/assets/images/ng-logo.png
deleted file mode 100644
index 1e488b1a49..0000000000
Binary files a/public/docs/_examples/template-syntax/dart/web/assets/images/ng-logo.png and /dev/null differ
diff --git a/public/docs/_examples/template-syntax/dart/web/assets/images/villain.png b/public/docs/_examples/template-syntax/dart/web/assets/images/villain.png
deleted file mode 100644
index 26697d1a42..0000000000
Binary files a/public/docs/_examples/template-syntax/dart/web/assets/images/villain.png and /dev/null differ
diff --git a/public/docs/_examples/template-syntax/dart/web/index.html b/public/docs/_examples/template-syntax/dart/web/index.html
deleted file mode 100644
index 3444f9f8f9..0000000000
--- a/public/docs/_examples/template-syntax/dart/web/index.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
- Template Syntax
-
-
-
-
-
-
-
- Loading...
-
-
diff --git a/public/docs/_examples/template-syntax/dart/web/main.dart b/public/docs/_examples/template-syntax/dart/web/main.dart
deleted file mode 100644
index 1a5f965ec1..0000000000
--- a/public/docs/_examples/template-syntax/dart/web/main.dart
+++ /dev/null
@@ -1,8 +0,0 @@
-// #docregion
-import 'package:angular2/platform/browser.dart';
-
-import 'package:template_syntax/app_component.dart';
-
-void main() {
- bootstrap(AppComponent);
-}
diff --git a/public/docs/_examples/template-syntax/dart/web/template-syntax.css b/public/docs/_examples/template-syntax/dart/web/template-syntax.css
deleted file mode 100644
index c8c0925830..0000000000
--- a/public/docs/_examples/template-syntax/dart/web/template-syntax.css
+++ /dev/null
@@ -1,12 +0,0 @@
-fieldset {border-style:none}
-img {height: 100px;}
-.box {border: 1px solid black; padding:3px}
-.child-div {margin-left: 1em; font-weight: normal}
-.hidden {display: none}
-.parent-div {margin-top: 1em; font-weight: bold}
-.special {font-weight:bold; font-size: x-large}
-.bad {color: red;}
-.curly {font-family: "Brush Script MT"}
-.toe {margin-left: 1em; font-style: italic;}
-little-hero {color:blue; font-size: smaller; background-color: Turquoise }
-.to-toc {margin-top: 10px; display: block}
\ No newline at end of file
diff --git a/public/docs/_examples/toh-1/dart/.docsync.json b/public/docs/_examples/toh-1/dart/.docsync.json
deleted file mode 100644
index 7ea3bce8f9..0000000000
--- a/public/docs/_examples/toh-1/dart/.docsync.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "title": "Tour of Heroes: The Hero Editor",
- "docPart": "tutorial",
- "docHref": "toh-pt1.html"
-}
diff --git a/public/docs/_examples/toh-1/dart/example-config.json b/public/docs/_examples/toh-1/dart/example-config.json
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/public/docs/_examples/toh-1/dart/lib/app_component.dart b/public/docs/_examples/toh-1/dart/lib/app_component.dart
deleted file mode 100644
index 362d8b3004..0000000000
--- a/public/docs/_examples/toh-1/dart/lib/app_component.dart
+++ /dev/null
@@ -1,30 +0,0 @@
-// #docregion pt1
-import 'package:angular2/core.dart';
-
-// #docregion hero-class-1
-class Hero {
- final int id;
- String name;
-
- Hero(this.id, this.name);
-}
-// #enddocregion hero-class-1
-
-@Component(
- selector: 'my-app',
- template: '''
- {{title}}
- {{hero.name}} details!
- {{hero.id}}
-
-
-
-
'''
-)
-class AppComponent {
- String title = 'Tour of Heroes';
- // #docregion hero-property-1
- Hero hero = new Hero(1, 'Windstorm');
- // #enddocregion hero-property-1
-}
-// #enddocregion pt1
diff --git a/public/docs/_examples/toh-1/dart/pubspec.yaml b/public/docs/_examples/toh-1/dart/pubspec.yaml
deleted file mode 100644
index 8c8d67bdb7..0000000000
--- a/public/docs/_examples/toh-1/dart/pubspec.yaml
+++ /dev/null
@@ -1,19 +0,0 @@
-# #docregion
-name: angular_tour_of_heroes
-description: Tour of Heroes
-version: 0.0.1
-environment:
- sdk: '>=1.19.0 <2.0.0'
-dependencies:
- angular2: ^2.2.0
-dev_dependencies:
- browser: ^0.10.0
- dart_to_js_script_rewriter: ^1.0.1
-transformers:
-- angular2:
- platform_directives:
- - 'package:angular2/common.dart#COMMON_DIRECTIVES'
- platform_pipes:
- - 'package:angular2/common.dart#COMMON_PIPES'
- entry_points: web/main.dart
-- dart_to_js_script_rewriter
diff --git a/public/docs/_examples/toh-1/dart/web/index.html b/public/docs/_examples/toh-1/dart/web/index.html
deleted file mode 100644
index 3a2280f3b7..0000000000
--- a/public/docs/_examples/toh-1/dart/web/index.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- Angular Tour of Heroes
-
-
-
-
-
-
-
- Loading...
-
-
diff --git a/public/docs/_examples/toh-1/dart/web/main.dart b/public/docs/_examples/toh-1/dart/web/main.dart
deleted file mode 100644
index c7ff5cd60b..0000000000
--- a/public/docs/_examples/toh-1/dart/web/main.dart
+++ /dev/null
@@ -1,9 +0,0 @@
-// #docregion pt1
-import 'package:angular2/platform/browser.dart';
-
-import 'package:angular_tour_of_heroes/app_component.dart';
-
-void main() {
- bootstrap(AppComponent);
-}
-// #enddocregion pt1
diff --git a/public/docs/_examples/toh-2/dart/.docsync.json b/public/docs/_examples/toh-2/dart/.docsync.json
deleted file mode 100644
index 7b3eecf567..0000000000
--- a/public/docs/_examples/toh-2/dart/.docsync.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "title": "Tour of Heroes: Master/Detail",
- "docPart": "tutorial",
- "docHref": "toh-pt2.html"
-}
diff --git a/public/docs/_examples/toh-2/dart/example-config.json b/public/docs/_examples/toh-2/dart/example-config.json
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/public/docs/_examples/toh-2/dart/lib/app_component.dart b/public/docs/_examples/toh-2/dart/lib/app_component.dart
deleted file mode 100644
index 82fc56754a..0000000000
--- a/public/docs/_examples/toh-2/dart/lib/app_component.dart
+++ /dev/null
@@ -1,111 +0,0 @@
-// #docregion
-import 'package:angular2/core.dart';
-
-class Hero {
- final int id;
- String name;
-
- Hero(this.id, this.name);
-}
-
-// #docregion hero-array
-final List mockHeroes = [
- new Hero(11, 'Mr. Nice'),
- new Hero(12, 'Narco'),
- new Hero(13, 'Bombasto'),
- new Hero(14, 'Celeritas'),
- new Hero(15, 'Magneta'),
- new Hero(16, 'RubberMan'),
- new Hero(17, 'Dynama'),
- new Hero(18, 'Dr IQ'),
- new Hero(19, 'Magma'),
- new Hero(20, 'Tornado')
-];
-// #enddocregion hero-array
-
-@Component(
- selector: 'my-app',
- template: '''
- {{title}}
- My Heroes
-
- -
- {{hero.id}} {{hero.name}}
-
-
-
-
{{selectedHero.name}} details!
-
{{selectedHero.id}}
-
-
-
-
-
- ''',
-// #docregion styles
- styles: const [
- '''
- .selected {
- background-color: #CFD8DC !important;
- color: white;
- }
- .heroes {
- margin: 0 0 2em 0;
- list-style-type: none;
- padding: 0;
- width: 10em;
- }
- .heroes li {
- cursor: pointer;
- position: relative;
- left: 0;
- background-color: #EEE;
- margin: .5em;
- padding: .3em 0em;
- height: 1.6em;
- border-radius: 4px;
- }
- .heroes li.selected:hover {
- color: white;
- }
- .heroes li:hover {
- color: #607D8B;
- background-color: #EEE;
- left: .1em;
- }
- .heroes .text {
- position: relative;
- top: -3px;
- }
- .heroes .badge {
- display: inline-block;
- font-size: small;
- color: white;
- padding: 0.8em 0.7em 0em 0.7em;
- background-color: #607D8B;
- line-height: 1em;
- position: relative;
- left: -1px;
- top: -4px;
- height: 1.8em;
- margin-right: .8em;
- border-radius: 4px 0px 0px 4px;
- }
- '''
- ])
-// #enddocregion styles
-class AppComponent {
- final String title = 'Tour of Heroes';
- final List heroes = mockHeroes;
-// #docregion selected-hero
- Hero selectedHero;
-// #enddocregion selected-hero
-
-// #docregion on-select
- onSelect(Hero hero) {
- selectedHero = hero;
- }
-// #enddocregion on-select
-}
diff --git a/public/docs/_examples/toh-2/dart/pubspec.yaml b/public/docs/_examples/toh-2/dart/pubspec.yaml
deleted file mode 100644
index 8c8d67bdb7..0000000000
--- a/public/docs/_examples/toh-2/dart/pubspec.yaml
+++ /dev/null
@@ -1,19 +0,0 @@
-# #docregion
-name: angular_tour_of_heroes
-description: Tour of Heroes
-version: 0.0.1
-environment:
- sdk: '>=1.19.0 <2.0.0'
-dependencies:
- angular2: ^2.2.0
-dev_dependencies:
- browser: ^0.10.0
- dart_to_js_script_rewriter: ^1.0.1
-transformers:
-- angular2:
- platform_directives:
- - 'package:angular2/common.dart#COMMON_DIRECTIVES'
- platform_pipes:
- - 'package:angular2/common.dart#COMMON_PIPES'
- entry_points: web/main.dart
-- dart_to_js_script_rewriter
diff --git a/public/docs/_examples/toh-2/dart/web/index.html b/public/docs/_examples/toh-2/dart/web/index.html
deleted file mode 100644
index 3a2280f3b7..0000000000
--- a/public/docs/_examples/toh-2/dart/web/index.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- Angular Tour of Heroes
-
-
-
-
-
-
-
- Loading...
-
-
diff --git a/public/docs/_examples/toh-2/dart/web/main.dart b/public/docs/_examples/toh-2/dart/web/main.dart
deleted file mode 100644
index 2b35525f8d..0000000000
--- a/public/docs/_examples/toh-2/dart/web/main.dart
+++ /dev/null
@@ -1,7 +0,0 @@
-import 'package:angular2/platform/browser.dart';
-
-import 'package:angular_tour_of_heroes/app_component.dart';
-
-void main() {
- bootstrap(AppComponent);
-}
diff --git a/public/docs/_examples/toh-3/dart/.docsync.json b/public/docs/_examples/toh-3/dart/.docsync.json
deleted file mode 100644
index b6418ebe94..0000000000
--- a/public/docs/_examples/toh-3/dart/.docsync.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "title": "Tour of Heroes: Multiple Components",
- "docPart": "tutorial",
- "docHref": "toh-pt3.html"
-}
diff --git a/public/docs/_examples/toh-3/dart/example-config.json b/public/docs/_examples/toh-3/dart/example-config.json
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/public/docs/_examples/toh-3/dart/lib/app_component.dart b/public/docs/_examples/toh-3/dart/lib/app_component.dart
deleted file mode 100644
index a51d317005..0000000000
--- a/public/docs/_examples/toh-3/dart/lib/app_component.dart
+++ /dev/null
@@ -1,102 +0,0 @@
-//#docregion
-import 'package:angular2/core.dart';
-
-// #docregion hero-import
-import 'hero.dart';
-// #enddocregion hero-import
-// #docregion hero-detail-import
-import 'hero_detail_component.dart';
-// #enddocregion hero-detail-import
-
-final List mockHeroes = [
- new Hero(11, 'Mr. Nice'),
- new Hero(12, 'Narco'),
- new Hero(13, 'Bombasto'),
- new Hero(14, 'Celeritas'),
- new Hero(15, 'Magneta'),
- new Hero(16, 'RubberMan'),
- new Hero(17, 'Dynama'),
- new Hero(18, 'Dr IQ'),
- new Hero(19, 'Magma'),
- new Hero(20, 'Tornado')
-];
-
-@Component(
- selector: 'my-app',
- // #docregion hero-detail-template
- template: '''
- {{title}}
- My Heroes
-
- -
- {{hero.id}} {{hero.name}}
-
-
-
- ''',
- // #enddocregion hero-detail-template
- styles: const [
- '''
- .selected {
- background-color: #CFD8DC !important;
- color: white;
- }
- .heroes {
- margin: 0 0 2em 0;
- list-style-type: none;
- padding: 0;
- width: 10em;
- }
- .heroes li {
- cursor: pointer;
- position: relative;
- left: 0;
- background-color: #EEE;
- margin: .5em;
- padding: .3em 0em;
- height: 1.6em;
- border-radius: 4px;
- }
- .heroes li.selected:hover {
- color: white;
- }
- .heroes li:hover {
- color: #607D8B;
- background-color: #EEE;
- left: .1em;
- }
- .heroes .text {
- position: relative;
- top: -3px;
- }
- .heroes .badge {
- display: inline-block;
- font-size: small;
- color: white;
- padding: 0.8em 0.7em 0em 0.7em;
- background-color: #607D8B;
- line-height: 1em;
- position: relative;
- left: -1px;
- top: -4px;
- height: 1.8em;
- margin-right: .8em;
- border-radius: 4px 0px 0px 4px;
- }
- '''
- ],
- // #docregion directives
- directives: const [HeroDetailComponent]
- // #enddocregion directives
- )
-class AppComponent {
- final String title = 'Tour of Heroes';
- final List heroes = mockHeroes;
- Hero selectedHero;
-
- void onSelect(Hero hero) {
- selectedHero = hero;
- }
-}
diff --git a/public/docs/_examples/toh-3/dart/lib/hero.dart b/public/docs/_examples/toh-3/dart/lib/hero.dart
deleted file mode 100644
index ea51fc9bc2..0000000000
--- a/public/docs/_examples/toh-3/dart/lib/hero.dart
+++ /dev/null
@@ -1,7 +0,0 @@
-// #docregion
-class Hero {
- final int id;
- String name;
-
- Hero(this.id, this.name);
-}
diff --git a/public/docs/_examples/toh-3/dart/lib/hero_detail_component.dart b/public/docs/_examples/toh-3/dart/lib/hero_detail_component.dart
deleted file mode 100644
index 9b85d21965..0000000000
--- a/public/docs/_examples/toh-3/dart/lib/hero_detail_component.dart
+++ /dev/null
@@ -1,36 +0,0 @@
-// #docplaster
-// #docregion
-// #docregion v1
-import 'package:angular2/core.dart';
-
-// #enddocregion v1
-// #docregion hero-import
-import 'hero.dart';
-// #enddocregion hero-import
-
-// #docregion v1
-@Component(
- selector: 'my-hero-detail',
- // #enddocregion v1
- // #docregion template
- template: '''
-
-
{{hero.name}} details!
-
{{hero.id}}
-
-
-
-
-
'''
- // #enddocregion template
- // #docregion v1
- )
-class HeroDetailComponent {
- // #enddocregion v1
- // #docregion inputs
- @Input()
- // #docregion hero
- Hero hero;
- // #enddocregion hero, inputs
- // #docregion v1
-}
diff --git a/public/docs/_examples/toh-3/dart/pubspec.yaml b/public/docs/_examples/toh-3/dart/pubspec.yaml
deleted file mode 100644
index 8c8d67bdb7..0000000000
--- a/public/docs/_examples/toh-3/dart/pubspec.yaml
+++ /dev/null
@@ -1,19 +0,0 @@
-# #docregion
-name: angular_tour_of_heroes
-description: Tour of Heroes
-version: 0.0.1
-environment:
- sdk: '>=1.19.0 <2.0.0'
-dependencies:
- angular2: ^2.2.0
-dev_dependencies:
- browser: ^0.10.0
- dart_to_js_script_rewriter: ^1.0.1
-transformers:
-- angular2:
- platform_directives:
- - 'package:angular2/common.dart#COMMON_DIRECTIVES'
- platform_pipes:
- - 'package:angular2/common.dart#COMMON_PIPES'
- entry_points: web/main.dart
-- dart_to_js_script_rewriter
diff --git a/public/docs/_examples/toh-3/dart/web/index.html b/public/docs/_examples/toh-3/dart/web/index.html
deleted file mode 100644
index 3a2280f3b7..0000000000
--- a/public/docs/_examples/toh-3/dart/web/index.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- Angular Tour of Heroes
-
-
-
-
-
-
-
- Loading...
-
-
diff --git a/public/docs/_examples/toh-3/dart/web/main.dart b/public/docs/_examples/toh-3/dart/web/main.dart
deleted file mode 100644
index f77be42dce..0000000000
--- a/public/docs/_examples/toh-3/dart/web/main.dart
+++ /dev/null
@@ -1,9 +0,0 @@
-// #docregion pt1
-import 'package:angular2/platform/browser.dart';
-
-import 'package:angular_tour_of_heroes/app_component.dart';
-
-main() {
- bootstrap(AppComponent);
-}
-// #enddocregion pt1
diff --git a/public/docs/_examples/toh-4/dart/.docsync.json b/public/docs/_examples/toh-4/dart/.docsync.json
deleted file mode 100644
index fa76636c8e..0000000000
--- a/public/docs/_examples/toh-4/dart/.docsync.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "title": "Tour of Heroes: Services",
- "docPart": "tutorial",
- "docHref": "toh-pt4.html"
-}
diff --git a/public/docs/_examples/toh-4/dart/example-config.json b/public/docs/_examples/toh-4/dart/example-config.json
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/public/docs/_examples/toh-4/dart/lib/app_component.dart b/public/docs/_examples/toh-4/dart/lib/app_component.dart
deleted file mode 100644
index 26e3e9fa50..0000000000
--- a/public/docs/_examples/toh-4/dart/lib/app_component.dart
+++ /dev/null
@@ -1,107 +0,0 @@
-// #docplaster
-// #docregion
-import 'dart:async';
-
-import 'package:angular2/core.dart';
-
-import 'hero.dart';
-import 'hero_detail_component.dart';
-// #docregion hero-service-import
-import 'hero_service.dart';
-// #enddocregion hero-service-import
-
-@Component(
- selector: 'my-app',
- // #docregion template
- template: '''
- {{title}}
- My Heroes
-
- -
- {{hero.id}} {{hero.name}}
-
-
-
- ''',
- // #enddocregion template
- styles: const [
- '''
- .selected {
- background-color: #CFD8DC !important;
- color: white;
- }
- .heroes {
- margin: 0 0 2em 0;
- list-style-type: none;
- padding: 0;
- width: 10em;
- }
- .heroes li {
- cursor: pointer;
- position: relative;
- left: 0;
- background-color: #EEE;
- margin: .5em;
- padding: .3em 0em;
- height: 1.6em;
- border-radius: 4px;
- }
- .heroes li.selected:hover {
- color: white;
- }
- .heroes li:hover {
- color: #607D8B;
- background-color: #EEE;
- left: .1em;
- }
- .heroes .text {
- position: relative;
- top: -3px;
- }
- .heroes .badge {
- display: inline-block;
- font-size: small;
- color: white;
- padding: 0.8em 0.7em 0em 0.7em;
- background-color: #607D8B;
- line-height: 1em;
- position: relative;
- left: -1px;
- top: -4px;
- height: 1.8em;
- margin-right: .8em;
- border-radius: 4px 0px 0px 4px;
- }
- '''
- ],
- directives: const [
- HeroDetailComponent
- ],
- providers: const [
- HeroService
- ])
-class AppComponent implements OnInit {
- String title = 'Tour of Heroes';
- List heroes;
- Hero selectedHero;
-
- final HeroService _heroService;
-
- AppComponent(this._heroService);
-
- // #docregion get-heroes
- Future getHeroes() async {
- heroes = await _heroService.getHeroes();
- }
- // #enddocregion get-heroes
-
- void ngOnInit() {
- getHeroes();
- }
-
- void onSelect(Hero hero) {
- selectedHero = hero;
- }
-}
diff --git a/public/docs/_examples/toh-4/dart/lib/app_component_1.dart b/public/docs/_examples/toh-4/dart/lib/app_component_1.dart
deleted file mode 100644
index 99953d1470..0000000000
--- a/public/docs/_examples/toh-4/dart/lib/app_component_1.dart
+++ /dev/null
@@ -1,60 +0,0 @@
-// #docplaster
-// #docregion on-init
-import 'package:angular2/core.dart';
-
-// #enddocregion on-init
-import 'hero.dart';
-import 'hero_detail_component.dart';
-import 'hero_service_1.dart';
-
-// Testable but never shown
-@Component(
- selector: 'my-app',
- template: '''
-
- {{hero.name}}
-
-
- ''',
- directives: const [HeroDetailComponent],
- // #docregion providers
- providers: const [HeroService])
- // #enddocregion providers
-// #docregion on-init
-class AppComponent implements OnInit {
- // #enddocregion on-init
- String title = 'Tour of Heroes';
- // #docregion heroes-prop
- List heroes;
- // #enddocregion heroes-prop
- Hero selectedHero;
-
- // #docregion new-service
- HeroService heroService = new HeroService(); // don't do this
- // #enddocregion new-service
- // #docregion ctor
- final HeroService _heroService;
- AppComponent(this._heroService);
- // #enddocregion ctor
-
- // #docregion getHeroes
- void getHeroes() {
- // #docregion get-heroes
- heroes = _heroService.getHeroes();
- // #enddocregion get-heroes
- }
- // #enddocregion getHeroes
-
- // #docregion ng-on-init, on-init
- void ngOnInit() {
- // #enddocregion on-init
- getHeroes();
- // #docregion on-init
- }
- // #enddocregion ng-on-init, on-init
-
- void onSelect(Hero hero) {
- selectedHero = hero;
- }
- // #docregion on-init
-}
diff --git a/public/docs/_examples/toh-4/dart/lib/hero.dart b/public/docs/_examples/toh-4/dart/lib/hero.dart
deleted file mode 100644
index 828f8cebab..0000000000
--- a/public/docs/_examples/toh-4/dart/lib/hero.dart
+++ /dev/null
@@ -1,6 +0,0 @@
-class Hero {
- final int id;
- String name;
-
- Hero(this.id, this.name);
-}
diff --git a/public/docs/_examples/toh-4/dart/lib/hero_detail_component.dart b/public/docs/_examples/toh-4/dart/lib/hero_detail_component.dart
deleted file mode 100644
index 9b9ede32fe..0000000000
--- a/public/docs/_examples/toh-4/dart/lib/hero_detail_component.dart
+++ /dev/null
@@ -1,21 +0,0 @@
-// #docregion
-import 'package:angular2/core.dart';
-
-import 'hero.dart';
-
-@Component(
- selector: 'my-hero-detail',
- template: '''
-
-
{{hero.name}} details!
-
{{hero.id}}
-
-
-
-
-
- ''')
-class HeroDetailComponent {
- @Input()
- Hero hero;
-}
diff --git a/public/docs/_examples/toh-4/dart/lib/hero_service.dart b/public/docs/_examples/toh-4/dart/lib/hero_service.dart
deleted file mode 100644
index 4eff635e4c..0000000000
--- a/public/docs/_examples/toh-4/dart/lib/hero_service.dart
+++ /dev/null
@@ -1,26 +0,0 @@
-// #docplaster
-// #docregion
-// #docregion just-get-heroes
-import 'dart:async';
-
-import 'package:angular2/core.dart';
-
-import 'hero.dart';
-import 'mock_heroes.dart';
-
-@Injectable()
-class HeroService {
- // #docregion get-heroes
- Future> getHeroes() async => mockHeroes;
- // #enddocregion get-heroes, just-get-heroes
- // #enddocregion
- // See the "Take it slow" appendix
- // #docregion get-heroes-slowly
- Future> getHeroesSlowly() {
- return new Future.delayed(const Duration(seconds: 2), getHeroes);
- }
- // #enddocregion get-heroes-slowly
- // #docregion
- // #docregion just-get-heroes
-}
-
diff --git a/public/docs/_examples/toh-4/dart/lib/hero_service_1.dart b/public/docs/_examples/toh-4/dart/lib/hero_service_1.dart
deleted file mode 100644
index 6feca85ae0..0000000000
--- a/public/docs/_examples/toh-4/dart/lib/hero_service_1.dart
+++ /dev/null
@@ -1,22 +0,0 @@
-// #docplaster
-// #docregion final
-// #docregion empty-class
-import 'package:angular2/core.dart';
-
-// #enddocregion empty-class
-import 'hero.dart';
-import 'mock_heroes.dart';
-
-// #docregion getHeroes-stub
-@Injectable()
-class HeroService {
- // #enddocregion getHeroes-stub, empty-class, final
- /*
- // #docregion getHeroes-stub
- List getHeroes() {} // stub
- // #enddocregion getHeroes-stub
- */
- // #docregion final
- List getHeroes() => mockHeroes;
- // #docregion empty-class, getHeroes-stub
-}
diff --git a/public/docs/_examples/toh-4/dart/lib/mock_heroes.dart b/public/docs/_examples/toh-4/dart/lib/mock_heroes.dart
deleted file mode 100644
index b67fe9be21..0000000000
--- a/public/docs/_examples/toh-4/dart/lib/mock_heroes.dart
+++ /dev/null
@@ -1,15 +0,0 @@
-// #docregion
-import 'hero.dart';
-
-final List mockHeroes = [
- new Hero(11, 'Mr. Nice'),
- new Hero(12, 'Narco'),
- new Hero(13, 'Bombasto'),
- new Hero(14, 'Celeritas'),
- new Hero(15, 'Magneta'),
- new Hero(16, 'RubberMan'),
- new Hero(17, 'Dynama'),
- new Hero(18, 'Dr IQ'),
- new Hero(19, 'Magma'),
- new Hero(20, 'Tornado')
-];
diff --git a/public/docs/_examples/toh-4/dart/pubspec.yaml b/public/docs/_examples/toh-4/dart/pubspec.yaml
deleted file mode 100644
index 8c8d67bdb7..0000000000
--- a/public/docs/_examples/toh-4/dart/pubspec.yaml
+++ /dev/null
@@ -1,19 +0,0 @@
-# #docregion
-name: angular_tour_of_heroes
-description: Tour of Heroes
-version: 0.0.1
-environment:
- sdk: '>=1.19.0 <2.0.0'
-dependencies:
- angular2: ^2.2.0
-dev_dependencies:
- browser: ^0.10.0
- dart_to_js_script_rewriter: ^1.0.1
-transformers:
-- angular2:
- platform_directives:
- - 'package:angular2/common.dart#COMMON_DIRECTIVES'
- platform_pipes:
- - 'package:angular2/common.dart#COMMON_PIPES'
- entry_points: web/main.dart
-- dart_to_js_script_rewriter
diff --git a/public/docs/_examples/toh-4/dart/web/index.html b/public/docs/_examples/toh-4/dart/web/index.html
deleted file mode 100644
index 3a2280f3b7..0000000000
--- a/public/docs/_examples/toh-4/dart/web/index.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- Angular Tour of Heroes
-
-
-
-
-
-
-
- Loading...
-
-
diff --git a/public/docs/_examples/toh-4/dart/web/main.dart b/public/docs/_examples/toh-4/dart/web/main.dart
deleted file mode 100644
index 2b35525f8d..0000000000
--- a/public/docs/_examples/toh-4/dart/web/main.dart
+++ /dev/null
@@ -1,7 +0,0 @@
-import 'package:angular2/platform/browser.dart';
-
-import 'package:angular_tour_of_heroes/app_component.dart';
-
-void main() {
- bootstrap(AppComponent);
-}
diff --git a/public/docs/_examples/toh-4/dart/web/main_1.dart b/public/docs/_examples/toh-4/dart/web/main_1.dart
deleted file mode 100644
index 40c663bd13..0000000000
--- a/public/docs/_examples/toh-4/dart/web/main_1.dart
+++ /dev/null
@@ -1,7 +0,0 @@
-import 'package:angular2/platform/browser.dart';
-
-import 'package:angular_tour_of_heroes/app_component_1.dart';
-
-void main() {
- bootstrap(AppComponent);
-}
diff --git a/public/docs/_examples/toh-5/dart/.docsync.json b/public/docs/_examples/toh-5/dart/.docsync.json
deleted file mode 100644
index 74d2e1165a..0000000000
--- a/public/docs/_examples/toh-5/dart/.docsync.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "title": "Tour of Heroes: Routing",
- "docPart": "tutorial",
- "docHref": "toh-pt5.html"
-}
diff --git a/public/docs/_examples/toh-5/dart/example-config.json b/public/docs/_examples/toh-5/dart/example-config.json
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/public/docs/_examples/toh-5/dart/lib/app_component.css b/public/docs/_examples/toh-5/dart/lib/app_component.css
deleted file mode 100644
index f4e8082ea1..0000000000
--- a/public/docs/_examples/toh-5/dart/lib/app_component.css
+++ /dev/null
@@ -1,29 +0,0 @@
-/* #docregion */
-h1 {
- font-size: 1.2em;
- color: #999;
- margin-bottom: 0;
-}
-h2 {
- font-size: 2em;
- margin-top: 0;
- padding-top: 0;
-}
-nav a {
- padding: 5px 10px;
- text-decoration: none;
- margin-top: 10px;
- display: inline-block;
- background-color: #eee;
- border-radius: 4px;
-}
-nav a:visited, a:link {
- color: #607D8B;
-}
-nav a:hover {
- color: #039be5;
- background-color: #CFD8DC;
-}
-nav a.router-link-active {
- color: #039be5;
-}
diff --git a/public/docs/_examples/toh-5/dart/lib/app_component.dart b/public/docs/_examples/toh-5/dart/lib/app_component.dart
deleted file mode 100644
index 9bc62a3477..0000000000
--- a/public/docs/_examples/toh-5/dart/lib/app_component.dart
+++ /dev/null
@@ -1,51 +0,0 @@
-// #docplaster
-// #docregion
-import 'package:angular2/core.dart';
-// #docregion import-router
-import 'package:angular2/router.dart';
-// #enddocregion import-router
-
-import 'dashboard_component.dart';
-import 'hero_detail_component.dart';
-import 'hero_service.dart';
-import 'heroes_component.dart';
-
-@Component(
- selector: 'my-app',
- // #docregion template, template-v3
- template: '''
- {{title}}
-
- ''',
- // #enddocregion template, template-v3
- // #docregion styleUrls
- styleUrls: const ['app_component.css'],
- // #enddocregion styleUrls
- // #docregion directives-and-providers
- directives: const [ROUTER_DIRECTIVES],
- providers: const [HeroService, ROUTER_PROVIDERS])
-// #enddocregion directives-and-providers
-// #docregion heroes, routes
-@RouteConfig(const [
- // #enddocregion heroes
- // #docregion dashboard
- const Route(
- path: '/dashboard',
- name: 'Dashboard',
- component: DashboardComponent,
- useAsDefault: true),
- // #enddocregion dashboard
- // #docregion hero-detail
- const Route(
- path: '/detail/:id', name: 'HeroDetail', component: HeroDetailComponent),
- // #enddocregion hero-detail
- // #docregion heroes
- const Route(path: '/heroes', name: 'Heroes', component: HeroesComponent)
-])
-// #enddocregion heroes, routes
-class AppComponent {
- String title = 'Tour of Heroes';
-}
diff --git a/public/docs/_examples/toh-5/dart/lib/app_component_1.dart b/public/docs/_examples/toh-5/dart/lib/app_component_1.dart
deleted file mode 100644
index 8455181dbc..0000000000
--- a/public/docs/_examples/toh-5/dart/lib/app_component_1.dart
+++ /dev/null
@@ -1,40 +0,0 @@
-// #docplaster
-// #docregion , v2
-import 'package:angular2/core.dart';
-// #enddocregion ,
-// #docregion v2
-import 'package:angular2/router.dart';
-// #docregion
-
-import 'hero_service.dart';
-import 'heroes_component.dart';
-
-// #enddocregion v2
-@Component(
- selector: 'my-app',
- template: '''
- {{title}}
- ''',
- directives: const [HeroesComponent],
- providers: const [HeroService])
-// #enddocregion ,
-class Bogus {}
-
-// #docregion v2
-@Component(
- selector: 'my-app',
- // #docregion template-v2
- template: '''
- {{title}}
- Heroes
- ''',
- // #enddocregion template-v2
- directives: const [ROUTER_DIRECTIVES],
- providers: const [HeroService, ROUTER_PROVIDERS])
-@RouteConfig(const [
- const Route(path: '/heroes', name: 'Heroes', component: HeroesComponent)
-])
-// #docregion ,
-class AppComponent {
- String title = 'Tour of Heroes';
-}
diff --git a/public/docs/_examples/toh-5/dart/lib/dashboard_component.css b/public/docs/_examples/toh-5/dart/lib/dashboard_component.css
deleted file mode 100644
index d850f074b5..0000000000
--- a/public/docs/_examples/toh-5/dart/lib/dashboard_component.css
+++ /dev/null
@@ -1,60 +0,0 @@
-/* #docregion */
-[class*='col-'] {
- float: left;
- text-decoration: none;
- padding-right: 20px;
- padding-bottom: 20px;
-}
-[class*='col-']:last-of-type {
- padding-right: 0;
-}
-*, *:after, *:before {
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
-}
-h3 {
- text-align: center; margin-bottom: 0;
-}
-h4 {
- position: relative;
-}
-.grid {
- margin: 0;
-}
-.col-1-4 {
- width: 25%;
-}
-.module {
- padding: 20px;
- text-align: center;
- color: #eee;
- max-height: 120px;
- min-width: 120px;
- background-color: #607D8B;
- border-radius: 2px;
-}
-.module:hover {
- background-color: #EEE;
- cursor: pointer;
- color: #607d8b;
-}
-.grid-pad {
- padding: 10px 0;
-}
-.grid-pad > [class*='col-']:last-of-type {
- padding-right: 20px;
-}
-@media (max-width: 600px) {
- .module {
- font-size: 10px;
- max-height: 75px; }
-}
-@media (max-width: 1024px) {
- .grid {
- margin: 0;
- }
- .module {
- min-width: 60px;
- }
-}
diff --git a/public/docs/_examples/toh-5/dart/lib/dashboard_component.dart b/public/docs/_examples/toh-5/dart/lib/dashboard_component.dart
deleted file mode 100644
index 40dc1a4694..0000000000
--- a/public/docs/_examples/toh-5/dart/lib/dashboard_component.dart
+++ /dev/null
@@ -1,39 +0,0 @@
-// #docplaster
-// #docregion , imports
-import 'dart:async';
-
-import 'package:angular2/core.dart';
-// #docregion import-router
-import 'package:angular2/router.dart';
-// #enddocregion import-router
-
-import 'hero.dart';
-import 'hero_service.dart';
-// #enddocregion imports
-
-// #docregion metadata
-@Component(
- selector: 'my-dashboard',
- templateUrl: 'dashboard_component.html',
- // #enddocregion metadata
- // #docregion css
- styleUrls: const ['dashboard_component.css'],
- // #enddocregion css
- // #docregion metadata
- directives: const [ROUTER_DIRECTIVES],
- )
-// #enddocregion metadata
-// #docregion class
-class DashboardComponent implements OnInit {
- List heroes;
-
- // #docregion ctor
- final HeroService _heroService;
-
- DashboardComponent(this._heroService);
- // #enddocregion ctor
-
- Future ngOnInit() async {
- heroes = (await _heroService.getHeroes()).skip(1).take(4).toList();
- }
-}
diff --git a/public/docs/_examples/toh-5/dart/lib/dashboard_component.html b/public/docs/_examples/toh-5/dart/lib/dashboard_component.html
deleted file mode 100644
index 56779ce130..0000000000
--- a/public/docs/_examples/toh-5/dart/lib/dashboard_component.html
+++ /dev/null
@@ -1,11 +0,0 @@
-
-Top Heroes
-
diff --git a/public/docs/_examples/toh-5/dart/lib/dashboard_component_1.dart b/public/docs/_examples/toh-5/dart/lib/dashboard_component_1.dart
deleted file mode 100644
index 5324624d1f..0000000000
--- a/public/docs/_examples/toh-5/dart/lib/dashboard_component_1.dart
+++ /dev/null
@@ -1,8 +0,0 @@
-// #docregion
-import 'package:angular2/core.dart';
-
-@Component(
- selector: 'my-dashboard',
- template: 'My Dashboard
'
-)
-class DashboardComponent {}
diff --git a/public/docs/_examples/toh-5/dart/lib/dashboard_component_1.html b/public/docs/_examples/toh-5/dart/lib/dashboard_component_1.html
deleted file mode 100644
index 0c556b8de0..0000000000
--- a/public/docs/_examples/toh-5/dart/lib/dashboard_component_1.html
+++ /dev/null
@@ -1,9 +0,0 @@
-
-Top Heroes
-
diff --git a/public/docs/_examples/toh-5/dart/lib/hero.dart b/public/docs/_examples/toh-5/dart/lib/hero.dart
deleted file mode 100644
index 828f8cebab..0000000000
--- a/public/docs/_examples/toh-5/dart/lib/hero.dart
+++ /dev/null
@@ -1,6 +0,0 @@
-class Hero {
- final int id;
- String name;
-
- Hero(this.id, this.name);
-}
diff --git a/public/docs/_examples/toh-5/dart/lib/hero_detail_component.css b/public/docs/_examples/toh-5/dart/lib/hero_detail_component.css
deleted file mode 100644
index ab2437efd8..0000000000
--- a/public/docs/_examples/toh-5/dart/lib/hero_detail_component.css
+++ /dev/null
@@ -1,30 +0,0 @@
-/* #docregion */
-label {
- display: inline-block;
- width: 3em;
- margin: .5em 0;
- color: #607D8B;
- font-weight: bold;
-}
-input {
- height: 2em;
- font-size: 1em;
- padding-left: .4em;
-}
-button {
- margin-top: 20px;
- font-family: Arial;
- background-color: #eee;
- border: none;
- padding: 5px 10px;
- border-radius: 4px;
- cursor: pointer; cursor: hand;
-}
-button:hover {
- background-color: #cfd8dc;
-}
-button:disabled {
- background-color: #eee;
- color: #ccc;
- cursor: auto;
-}
diff --git a/public/docs/_examples/toh-5/dart/lib/hero_detail_component.dart b/public/docs/_examples/toh-5/dart/lib/hero_detail_component.dart
deleted file mode 100644
index 6a344362ca..0000000000
--- a/public/docs/_examples/toh-5/dart/lib/hero_detail_component.dart
+++ /dev/null
@@ -1,49 +0,0 @@
-// #docplaster
-// #docregion , v2
-// #docregion added-imports
-import 'dart:async';
-
-// #enddocregion added-imports
-import 'package:angular2/core.dart';
-// #docregion added-imports
-import 'package:angular2/router.dart';
-import 'package:angular2/platform/common.dart';
-
-// #enddocregion added-imports
-import 'hero.dart';
-// #docregion added-imports
-import 'hero_service.dart';
-// #enddocregion added-imports
-
-@Component(
- selector: 'my-hero-detail',
- // #docregion metadata, templateUrl
- templateUrl: 'hero_detail_component.html',
- // #enddocregion metadata, templateUrl, v2
- styleUrls: const ['hero_detail_component.css']
- // #docregion v2
- )
-// #docregion implement
-class HeroDetailComponent implements OnInit {
- // #enddocregion implement
- Hero hero;
- // #docregion ctor
- final HeroService _heroService;
- final RouteParams _routeParams;
- final Location _location;
-
- HeroDetailComponent(this._heroService, this._routeParams, this._location);
- // #enddocregion ctor
-
- // #docregion ngOnInit
- Future ngOnInit() async {
- var _id = _routeParams.get('id');
- var id = int.parse(_id ?? '', onError: (_) => null);
- if (id != null) hero = await (_heroService.getHero(id));
- }
- // #enddocregion ngOnInit
-
- // #docregion goBack
- void goBack() => _location.back();
- // #enddocregion goBack
-}
diff --git a/public/docs/_examples/toh-5/dart/lib/hero_detail_component.html b/public/docs/_examples/toh-5/dart/lib/hero_detail_component.html
deleted file mode 100644
index 9b2adf5c1e..0000000000
--- a/public/docs/_examples/toh-5/dart/lib/hero_detail_component.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
{{hero.name}} details!
-
- {{hero.id}}
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/public/docs/_examples/toh-5/dart/lib/hero_service.dart b/public/docs/_examples/toh-5/dart/lib/hero_service.dart
deleted file mode 100644
index aca9e3c21d..0000000000
--- a/public/docs/_examples/toh-5/dart/lib/hero_service.dart
+++ /dev/null
@@ -1,22 +0,0 @@
-// #docregion
-import 'dart:async';
-
-import 'package:angular2/core.dart';
-
-import 'hero.dart';
-import 'mock_heroes.dart';
-
-@Injectable()
-class HeroService {
- Future> getHeroes() async => mockHeroes;
-
- Future> getHeroesSlowly() {
- return new Future>.delayed(
- const Duration(seconds: 2), getHeroes);
- }
-
- // #docregion getHero
- Future getHero(int id) async =>
- (await getHeroes()).firstWhere((hero) => hero.id == id);
- // #enddocregion getHero
-}
diff --git a/public/docs/_examples/toh-5/dart/lib/heroes_component.css b/public/docs/_examples/toh-5/dart/lib/heroes_component.css
deleted file mode 100644
index 35e45af98d..0000000000
--- a/public/docs/_examples/toh-5/dart/lib/heroes_component.css
+++ /dev/null
@@ -1,59 +0,0 @@
-.selected {
- background-color: #CFD8DC !important;
- color: white;
-}
-.heroes {
- margin: 0 0 2em 0;
- list-style-type: none;
- padding: 0;
- width: 15em;
-}
-.heroes li {
- cursor: pointer;
- position: relative;
- left: 0;
- background-color: #EEE;
- margin: .5em;
- padding: .3em 0;
- height: 1.6em;
- border-radius: 4px;
-}
-.heroes li:hover {
- color: #607D8B;
- background-color: #DDD;
- left: .1em;
-}
-.heroes li.selected:hover {
- background-color: #BBD8DC !important;
- color: white;
-}
-.heroes .text {
- position: relative;
- top: -3px;
-}
-.heroes .badge {
- display: inline-block;
- font-size: small;
- color: white;
- padding: 0.8em 0.7em 0 0.7em;
- background-color: #607D8B;
- line-height: 1em;
- position: relative;
- left: -1px;
- top: -4px;
- height: 1.8em;
- margin-right: .8em;
- border-radius: 4px 0 0 4px;
-}
-button {
- font-family: Arial;
- background-color: #eee;
- border: none;
- padding: 5px 10px;
- border-radius: 4px;
- cursor: pointer;
- cursor: hand;
-}
-button:hover {
- background-color: #cfd8dc;
-}
diff --git a/public/docs/_examples/toh-5/dart/lib/heroes_component.dart b/public/docs/_examples/toh-5/dart/lib/heroes_component.dart
deleted file mode 100644
index e11d2f62f4..0000000000
--- a/public/docs/_examples/toh-5/dart/lib/heroes_component.dart
+++ /dev/null
@@ -1,55 +0,0 @@
-// #docplaster
-// #docregion
-import 'dart:async';
-
-import 'package:angular2/core.dart';
-import 'package:angular2/router.dart';
-
-import 'hero.dart';
-import 'hero_service.dart';
-
-// #docregion metadata, renaming
-@Component(
- selector: 'my-heroes',
- // #enddocregion renaming
- templateUrl: 'heroes_component.html',
- styleUrls: const ['heroes_component.css']
-// #docregion renaming
-)
-// #enddocregion metadata
-// #docregion class
-class HeroesComponent implements OnInit {
- // #enddocregion renaming
- final Router _router;
- final HeroService _heroService;
- List heroes;
- Hero selectedHero;
-
- // #docregion renaming
- HeroesComponent(this._heroService,
- // #enddocregion renaming
- this._router
- // #docregion renaming
- );
- // #enddocregion renaming
-
- Future getHeroes() async {
- heroes = await _heroService.getHeroes();
- }
-
- void ngOnInit() {
- getHeroes();
- }
-
- void onSelect(Hero hero) {
- selectedHero = hero;
- }
-
- // #docregion gotoDetail
- Future gotoDetail() => _router.navigate([
- 'HeroDetail',
- {'id': selectedHero.id.toString()}
- ]);
- // #enddocregion gotoDetail
- // #docregion renaming
-}
diff --git a/public/docs/_examples/toh-5/dart/lib/heroes_component.html b/public/docs/_examples/toh-5/dart/lib/heroes_component.html
deleted file mode 100644
index d0495e364c..0000000000
--- a/public/docs/_examples/toh-5/dart/lib/heroes_component.html
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-My Heroes
-
- -
- {{hero.id}} {{hero.name}}
-
-
-
-
-
-
- {{selectedHero.name | uppercase}} is my hero
-
-
-
-
diff --git a/public/docs/_examples/toh-5/dart/lib/mock_heroes.dart b/public/docs/_examples/toh-5/dart/lib/mock_heroes.dart
deleted file mode 100644
index 4c2153255b..0000000000
--- a/public/docs/_examples/toh-5/dart/lib/mock_heroes.dart
+++ /dev/null
@@ -1,14 +0,0 @@
-import 'hero.dart';
-
-final List mockHeroes = [
- new Hero(11, 'Mr. Nice'),
- new Hero(12, 'Narco'),
- new Hero(13, 'Bombasto'),
- new Hero(14, 'Celeritas'),
- new Hero(15, 'Magneta'),
- new Hero(16, 'RubberMan'),
- new Hero(17, 'Dynama'),
- new Hero(18, 'Dr IQ'),
- new Hero(19, 'Magma'),
- new Hero(20, 'Tornado')
-];
diff --git a/public/docs/_examples/toh-5/dart/pubspec.yaml b/public/docs/_examples/toh-5/dart/pubspec.yaml
deleted file mode 100644
index 8c8d67bdb7..0000000000
--- a/public/docs/_examples/toh-5/dart/pubspec.yaml
+++ /dev/null
@@ -1,19 +0,0 @@
-# #docregion
-name: angular_tour_of_heroes
-description: Tour of Heroes
-version: 0.0.1
-environment:
- sdk: '>=1.19.0 <2.0.0'
-dependencies:
- angular2: ^2.2.0
-dev_dependencies:
- browser: ^0.10.0
- dart_to_js_script_rewriter: ^1.0.1
-transformers:
-- angular2:
- platform_directives:
- - 'package:angular2/common.dart#COMMON_DIRECTIVES'
- platform_pipes:
- - 'package:angular2/common.dart#COMMON_PIPES'
- entry_points: web/main.dart
-- dart_to_js_script_rewriter
diff --git a/public/docs/_examples/toh-5/dart/web/index.html b/public/docs/_examples/toh-5/dart/web/index.html
deleted file mode 100644
index 3be150d2a2..0000000000
--- a/public/docs/_examples/toh-5/dart/web/index.html
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
- Angular Tour of Heroes
-
-
-
-
-
-
-
-
-
-
-
-
- Loading...
-
-
diff --git a/public/docs/_examples/toh-5/dart/web/main.dart b/public/docs/_examples/toh-5/dart/web/main.dart
deleted file mode 100644
index 2b35525f8d..0000000000
--- a/public/docs/_examples/toh-5/dart/web/main.dart
+++ /dev/null
@@ -1,7 +0,0 @@
-import 'package:angular2/platform/browser.dart';
-
-import 'package:angular_tour_of_heroes/app_component.dart';
-
-void main() {
- bootstrap(AppComponent);
-}
diff --git a/public/docs/_examples/toh-6/dart/.docsync.json b/public/docs/_examples/toh-6/dart/.docsync.json
deleted file mode 100644
index 29f01f6648..0000000000
--- a/public/docs/_examples/toh-6/dart/.docsync.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "title": "Tour of Heroes: HTTP",
- "docPart": "tutorial",
- "docHref": "toh-pt6.html"
-}
diff --git a/public/docs/_examples/toh-6/dart/example-config.json b/public/docs/_examples/toh-6/dart/example-config.json
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/public/docs/_examples/toh-6/dart/lib/app_component.css b/public/docs/_examples/toh-6/dart/lib/app_component.css
deleted file mode 100644
index f4e8082ea1..0000000000
--- a/public/docs/_examples/toh-6/dart/lib/app_component.css
+++ /dev/null
@@ -1,29 +0,0 @@
-/* #docregion */
-h1 {
- font-size: 1.2em;
- color: #999;
- margin-bottom: 0;
-}
-h2 {
- font-size: 2em;
- margin-top: 0;
- padding-top: 0;
-}
-nav a {
- padding: 5px 10px;
- text-decoration: none;
- margin-top: 10px;
- display: inline-block;
- background-color: #eee;
- border-radius: 4px;
-}
-nav a:visited, a:link {
- color: #607D8B;
-}
-nav a:hover {
- color: #039be5;
- background-color: #CFD8DC;
-}
-nav a.router-link-active {
- color: #039be5;
-}
diff --git a/public/docs/_examples/toh-6/dart/lib/app_component.dart b/public/docs/_examples/toh-6/dart/lib/app_component.dart
deleted file mode 100644
index 262f54b8ad..0000000000
--- a/public/docs/_examples/toh-6/dart/lib/app_component.dart
+++ /dev/null
@@ -1,45 +0,0 @@
-// #docplaster
-// #docregion
-import 'package:angular2/core.dart';
-import 'package:angular2/router.dart';
-
-import 'package:angular_tour_of_heroes/heroes_component.dart';
-import 'package:angular_tour_of_heroes/hero_service.dart';
-import 'package:angular_tour_of_heroes/dashboard_component.dart';
-// #docregion hero-detail-import
-import 'package:angular_tour_of_heroes/hero_detail_component.dart';
-// #enddocregion hero-detail-import
-
-@Component(
- selector: 'my-app',
- // #docregion template
- template: '''
- {{title}}
-
- ''',
- // #enddocregion template
- // #docregion style-urls
- styleUrls: const ['app_component.css'],
- // #enddocregion style-urls
- directives: const [ROUTER_DIRECTIVES],
- providers: const [HeroService, ROUTER_PROVIDERS])
-@RouteConfig(const [
- // #docregion dashboard-route
- const Route(
- path: '/dashboard',
- name: 'Dashboard',
- component: DashboardComponent,
- useAsDefault: true),
- // #enddocregion dashboard-route
- // #docregion hero-detail-route
- const Route(
- path: '/detail/:id', name: 'HeroDetail', component: HeroDetailComponent),
- // #enddocregion hero-detail-route
- const Route(path: '/heroes', name: 'Heroes', component: HeroesComponent)
-])
-class AppComponent {
- String title = 'Tour of Heroes';
-}
diff --git a/public/docs/_examples/toh-6/dart/lib/dashboard_component.css b/public/docs/_examples/toh-6/dart/lib/dashboard_component.css
deleted file mode 100644
index dc7fb7ce06..0000000000
--- a/public/docs/_examples/toh-6/dart/lib/dashboard_component.css
+++ /dev/null
@@ -1,62 +0,0 @@
-/* #docregion */
-[class*='col-'] {
- float: left;
- padding-right: 20px;
- padding-bottom: 20px;
-}
-[class*='col-']:last-of-type {
- padding-right: 0;
-}
-a {
- text-decoration: none;
-}
-*, *:after, *:before {
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
-}
-h3 {
- text-align: center; margin-bottom: 0;
-}
-h4 {
- position: relative;
-}
-.grid {
- margin: 0;
-}
-.col-1-4 {
- width: 25%;
-}
-.module {
- padding: 20px;
- text-align: center;
- color: #eee;
- max-height: 120px;
- min-width: 120px;
- background-color: #607D8B;
- border-radius: 2px;
-}
-.module:hover {
- background-color: #EEE;
- cursor: pointer;
- color: #607d8b;
-}
-.grid-pad {
- padding: 10px 0;
-}
-.grid-pad > [class*='col-']:last-of-type {
- padding-right: 20px;
-}
-@media (max-width: 600px) {
- .module {
- font-size: 10px;
- max-height: 75px; }
-}
-@media (max-width: 1024px) {
- .grid {
- margin: 0;
- }
- .module {
- min-width: 60px;
- }
-}
diff --git a/public/docs/_examples/toh-6/dart/lib/dashboard_component.dart b/public/docs/_examples/toh-6/dart/lib/dashboard_component.dart
deleted file mode 100644
index 952736be7c..0000000000
--- a/public/docs/_examples/toh-6/dart/lib/dashboard_component.dart
+++ /dev/null
@@ -1,28 +0,0 @@
-// #docregion
-import 'dart:async';
-
-import 'package:angular2/core.dart';
-import 'package:angular2/router.dart';
-
-import 'hero.dart';
-import 'hero_service.dart';
-// #docregion search
-import 'hero_search_component.dart';
-
-@Component(
- selector: 'my-dashboard',
- templateUrl: 'dashboard_component.html',
- styleUrls: const ['dashboard_component.css'],
- directives: const [HeroSearchComponent, ROUTER_DIRECTIVES])
-// #enddocregion search
-class DashboardComponent implements OnInit {
- List heroes;
-
- final HeroService _heroService;
-
- DashboardComponent(this._heroService);
-
- Future ngOnInit() async {
- heroes = (await _heroService.getHeroes()).skip(1).take(4).toList();
- }
-}
diff --git a/public/docs/_examples/toh-6/dart/lib/dashboard_component.html b/public/docs/_examples/toh-6/dart/lib/dashboard_component.html
deleted file mode 100644
index 12ca29d8d1..0000000000
--- a/public/docs/_examples/toh-6/dart/lib/dashboard_component.html
+++ /dev/null
@@ -1,10 +0,0 @@
-
-Top Heroes
-
-
diff --git a/public/docs/_examples/toh-6/dart/lib/hero.dart b/public/docs/_examples/toh-6/dart/lib/hero.dart
deleted file mode 100644
index bc9a33b8d9..0000000000
--- a/public/docs/_examples/toh-6/dart/lib/hero.dart
+++ /dev/null
@@ -1,14 +0,0 @@
-// #docregion
-class Hero {
- final int id;
- String name;
-
- Hero(this.id, this.name);
-
- factory Hero.fromJson(Map hero) =>
- new Hero(_toInt(hero['id']), hero['name']);
-
- Map toJson() => {'id': id, 'name': name};
-}
-
-int _toInt(id) => id is int ? id : int.parse(id);
diff --git a/public/docs/_examples/toh-6/dart/lib/hero_detail_component.css b/public/docs/_examples/toh-6/dart/lib/hero_detail_component.css
deleted file mode 100644
index ab2437efd8..0000000000
--- a/public/docs/_examples/toh-6/dart/lib/hero_detail_component.css
+++ /dev/null
@@ -1,30 +0,0 @@
-/* #docregion */
-label {
- display: inline-block;
- width: 3em;
- margin: .5em 0;
- color: #607D8B;
- font-weight: bold;
-}
-input {
- height: 2em;
- font-size: 1em;
- padding-left: .4em;
-}
-button {
- margin-top: 20px;
- font-family: Arial;
- background-color: #eee;
- border: none;
- padding: 5px 10px;
- border-radius: 4px;
- cursor: pointer; cursor: hand;
-}
-button:hover {
- background-color: #cfd8dc;
-}
-button:disabled {
- background-color: #eee;
- color: #ccc;
- cursor: auto;
-}
diff --git a/public/docs/_examples/toh-6/dart/lib/hero_detail_component.dart b/public/docs/_examples/toh-6/dart/lib/hero_detail_component.dart
deleted file mode 100644
index d200d831ee..0000000000
--- a/public/docs/_examples/toh-6/dart/lib/hero_detail_component.dart
+++ /dev/null
@@ -1,39 +0,0 @@
-// #docplaster
-// #docregion , v2
-import 'dart:async';
-
-import 'package:angular2/core.dart';
-import 'package:angular2/router.dart';
-import 'package:angular2/platform/common.dart';
-
-import 'hero.dart';
-import 'hero_service.dart';
-
-@Component(
- selector: 'my-hero-detail',
- templateUrl: 'hero_detail_component.html',
- styleUrls: const ['hero_detail_component.css']
- )
-class HeroDetailComponent implements OnInit {
- Hero hero;
- final HeroService _heroService;
- final RouteParams _routeParams;
- final Location _location;
-
- HeroDetailComponent(this._heroService, this._routeParams, this._location);
-
- Future ngOnInit() async {
- var _id = _routeParams.get('id');
- var id = int.parse(_id ?? '', onError: (_) => null);
- if (id != null) hero = await (_heroService.getHero(id));
- }
-
- // #docregion save
- Future save() async {
- await _heroService.update(hero);
- goBack();
- }
- // #enddocregion save
-
- void goBack() => _location.back();
-}
diff --git a/public/docs/_examples/toh-6/dart/lib/hero_detail_component.html b/public/docs/_examples/toh-6/dart/lib/hero_detail_component.html
deleted file mode 100644
index 161dc2246e..0000000000
--- a/public/docs/_examples/toh-6/dart/lib/hero_detail_component.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
{{hero.name}} details!
-
- {{hero.id}}
-
-
-
-
-
-
-
-
-
diff --git a/public/docs/_examples/toh-6/dart/lib/hero_search_component.css b/public/docs/_examples/toh-6/dart/lib/hero_search_component.css
deleted file mode 100644
index b41b4ec33e..0000000000
--- a/public/docs/_examples/toh-6/dart/lib/hero_search_component.css
+++ /dev/null
@@ -1,15 +0,0 @@
-/* #docregion */
-.search-result {
- border-bottom: 1px solid gray;
- border-left: 1px solid gray;
- border-right: 1px solid gray;
- width:195px;
- height: 20px;
- padding: 5px;
- background-color: white;
- cursor: pointer;
-}
-#search-box {
- width: 200px;
- height: 20px;
-}
diff --git a/public/docs/_examples/toh-6/dart/lib/hero_search_component.dart b/public/docs/_examples/toh-6/dart/lib/hero_search_component.dart
deleted file mode 100644
index fc52ace1ba..0000000000
--- a/public/docs/_examples/toh-6/dart/lib/hero_search_component.dart
+++ /dev/null
@@ -1,57 +0,0 @@
-// #docplaster
-// #docregion
-import 'dart:async';
-
-import 'package:angular2/core.dart';
-import 'package:angular2/router.dart';
-import 'package:stream_transformers/stream_transformers.dart';
-
-import 'hero_search_service.dart';
-import 'hero.dart';
-
-@Component(
- selector: 'hero-search',
- templateUrl: 'hero_search_component.html',
- styleUrls: const ['hero_search_component.css'],
- providers: const [HeroSearchService])
-class HeroSearchComponent implements OnInit {
- HeroSearchService _heroSearchService;
- Router _router;
-
- // #docregion search
- Stream> heroes;
- // #enddocregion search
- // #docregion searchTerms
- StreamController _searchTerms =
- new StreamController.broadcast();
- // #enddocregion searchTerms
-
- HeroSearchComponent(this._heroSearchService, this._router) {}
- // #docregion searchTerms
-
- // Push a search term into the stream.
- void search(String term) => _searchTerms.add(term);
- // #enddocregion searchTerms
- // #docregion search
-
- Future ngOnInit() async {
- heroes = _searchTerms.stream
- .transform(new Debounce(new Duration(milliseconds: 300)))
- .distinct()
- .transform(new FlatMapLatest((term) => term.isEmpty
- ? new Stream>.fromIterable([[]])
- : _heroSearchService.search(term).asStream()))
- .handleError((e) {
- print(e); // for demo purposes only
- });
- }
- // #enddocregion search
-
- void gotoDetail(Hero hero) {
- var link = [
- 'HeroDetail',
- {'id': hero.id.toString()}
- ];
- _router.navigate(link);
- }
-}
diff --git a/public/docs/_examples/toh-6/dart/lib/hero_search_component.html b/public/docs/_examples/toh-6/dart/lib/hero_search_component.html
deleted file mode 100644
index 08c0560c5b..0000000000
--- a/public/docs/_examples/toh-6/dart/lib/hero_search_component.html
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
diff --git a/public/docs/_examples/toh-6/dart/lib/hero_search_service.dart b/public/docs/_examples/toh-6/dart/lib/hero_search_service.dart
deleted file mode 100644
index 3fecf42e1b..0000000000
--- a/public/docs/_examples/toh-6/dart/lib/hero_search_service.dart
+++ /dev/null
@@ -1,33 +0,0 @@
-// #docregion
-import 'dart:async';
-import 'dart:convert';
-
-import 'package:angular2/core.dart';
-import 'package:http/http.dart';
-
-import 'hero.dart';
-
-@Injectable()
-class HeroSearchService {
- final Client _http;
-
- HeroSearchService(this._http);
-
- Future> search(String term) async {
- try {
- final response = await _http.get('app/heroes/?name=$term');
- return _extractData(response)
- .map((json) => new Hero.fromJson(json))
- .toList();
- } catch (e) {
- throw _handleError(e);
- }
- }
-
- dynamic _extractData(Response resp) => JSON.decode(resp.body)['data'];
-
- Exception _handleError(dynamic e) {
- print(e); // for demo purposes only
- return new Exception('Server error; cause: $e');
- }
-}
diff --git a/public/docs/_examples/toh-6/dart/lib/hero_service.dart b/public/docs/_examples/toh-6/dart/lib/hero_service.dart
deleted file mode 100644
index 08d18d69d5..0000000000
--- a/public/docs/_examples/toh-6/dart/lib/hero_service.dart
+++ /dev/null
@@ -1,96 +0,0 @@
-// #docplaster
-// #docregion , imports
-import 'dart:async';
-import 'dart:convert';
-
-import 'package:angular2/core.dart';
-import 'package:http/http.dart';
-
-import 'hero.dart';
-// #enddocregion imports
-
-@Injectable()
-class HeroService {
- // #docregion update
- static final _headers = {'Content-Type': 'application/json'};
- // #enddocregion update
- // #docregion getHeroes
- static const _heroesUrl = 'api/heroes'; // URL to web API
-
- final Client _http;
-
- HeroService(this._http);
-
- Future> getHeroes() async {
- try {
- final response = await _http.get(_heroesUrl);
- final heroes = _extractData(response)
- .map((value) => new Hero.fromJson(value))
- .toList();
- return heroes;
- // #docregion catch
- } catch (e) {
- throw _handleError(e);
- }
- // #enddocregion catch
- }
-
- // #docregion extract-data
- dynamic _extractData(Response resp) => JSON.decode(resp.body)['data'];
- // #enddocregion extract-data
-
- // #docregion handleError
- Exception _handleError(dynamic e) {
- print(e); // for demo purposes only
- return new Exception('Server error; cause: $e');
- }
- // #enddocregion handleError, getHeroes
-
- // #docregion getHero
- Future getHero(int id) async {
- try {
- final response = await _http.get('$_heroesUrl/$id');
- return new Hero.fromJson(_extractData(response));
- } catch (e) {
- throw _handleError(e);
- }
- }
- // #enddocregion getHero
-
- // #docregion create
- Future create(String name) async {
- try {
- final response = await _http.post(_heroesUrl,
- headers: _headers, body: JSON.encode({'name': name}));
- return new Hero.fromJson(_extractData(response));
- } catch (e) {
- throw _handleError(e);
- }
- }
- // #enddocregion create
- // #docregion update
-
- Future update(Hero hero) async {
- try {
- final url = '$_heroesUrl/${hero.id}';
- final response =
- await _http.put(url, headers: _headers, body: JSON.encode(hero));
- return new Hero.fromJson(_extractData(response));
- } catch (e) {
- throw _handleError(e);
- }
- }
- // #enddocregion update
-
- // #docregion delete
- Future delete(int id) async {
- try {
- final url = '$_heroesUrl/$id';
- await _http.delete(url, headers: _headers);
- } catch (e) {
- throw _handleError(e);
- }
- }
- // #enddocregion delete
-
-}
diff --git a/public/docs/_examples/toh-6/dart/lib/heroes_component.css b/public/docs/_examples/toh-6/dart/lib/heroes_component.css
deleted file mode 100644
index d2c958a911..0000000000
--- a/public/docs/_examples/toh-6/dart/lib/heroes_component.css
+++ /dev/null
@@ -1,68 +0,0 @@
-/* #docregion */
-.selected {
- background-color: #CFD8DC !important;
- color: white;
-}
-.heroes {
- margin: 0 0 2em 0;
- list-style-type: none;
- padding: 0;
- width: 15em;
-}
-.heroes li {
- cursor: pointer;
- position: relative;
- left: 0;
- background-color: #EEE;
- margin: .5em;
- padding: .3em 0;
- height: 1.6em;
- border-radius: 4px;
-}
-.heroes li:hover {
- color: #607D8B;
- background-color: #DDD;
- left: .1em;
-}
-.heroes li.selected:hover {
- background-color: #BBD8DC !important;
- color: white;
-}
-.heroes .text {
- position: relative;
- top: -3px;
-}
-.heroes .badge {
- display: inline-block;
- font-size: small;
- color: white;
- padding: 0.8em 0.7em 0 0.7em;
- background-color: #607D8B;
- line-height: 1em;
- position: relative;
- left: -1px;
- top: -4px;
- height: 1.8em;
- margin-right: .8em;
- border-radius: 4px 0 0 4px;
-}
-button {
- font-family: Arial;
- background-color: #eee;
- border: none;
- padding: 5px 10px;
- border-radius: 4px;
- cursor: pointer;
- cursor: hand;
-}
-button:hover {
- background-color: #cfd8dc;
-}
-/* #docregion additions */
-button.delete {
- float:right;
- margin-top: 2px;
- margin-right: .8em;
- background-color: gray !important;
- color:white;
-}
diff --git a/public/docs/_examples/toh-6/dart/lib/heroes_component.dart b/public/docs/_examples/toh-6/dart/lib/heroes_component.dart
deleted file mode 100644
index 19b8f4e0ba..0000000000
--- a/public/docs/_examples/toh-6/dart/lib/heroes_component.dart
+++ /dev/null
@@ -1,58 +0,0 @@
-// #docregion
-import 'dart:async';
-
-import 'package:angular2/core.dart';
-import 'package:angular2/router.dart';
-
-import 'hero.dart';
-import 'hero_detail_component.dart';
-import 'hero_service.dart';
-
-@Component(
- selector: 'my-heroes',
- templateUrl: 'heroes_component.html',
- styleUrls: const ['heroes_component.css'],
- directives: const [HeroDetailComponent])
-class HeroesComponent implements OnInit {
- List heroes;
- Hero selectedHero;
-
- final HeroService _heroService;
- final Router _router;
-
- HeroesComponent(this._heroService, this._router);
-
- Future getHeroes() async {
- heroes = await _heroService.getHeroes();
- }
-
- // #docregion add
- Future add(String name) async {
- name = name.trim();
- if (name.isEmpty) return;
- heroes.add(await _heroService.create(name));
- selectedHero = null;
- }
- // #enddocregion add
-
- // #docregion delete
- Future delete(Hero hero) async {
- await _heroService.delete(hero.id);
- heroes.remove(hero);
- if (selectedHero == hero) selectedHero = null;
- }
- // #enddocregion delete
-
- void ngOnInit() {
- getHeroes();
- }
-
- void onSelect(Hero hero) {
- selectedHero = hero;
- }
-
- Future gotoDetail() => _router.navigate([
- 'HeroDetail',
- {'id': selectedHero.id.toString()}
- ]);
-}
diff --git a/public/docs/_examples/toh-6/dart/lib/heroes_component.html b/public/docs/_examples/toh-6/dart/lib/heroes_component.html
deleted file mode 100644
index 3ffb597fbc..0000000000
--- a/public/docs/_examples/toh-6/dart/lib/heroes_component.html
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-My Heroes
-
-
-
-
-
-
-
-
- -
- {{hero.id}}
- {{hero.name}}
-
-
-
-
-
-
-
-
- {{selectedHero.name | uppercase}} is my hero
-
-
-
diff --git a/public/docs/_examples/toh-6/dart/lib/in_memory_data_service.dart b/public/docs/_examples/toh-6/dart/lib/in_memory_data_service.dart
deleted file mode 100644
index f17195b204..0000000000
--- a/public/docs/_examples/toh-6/dart/lib/in_memory_data_service.dart
+++ /dev/null
@@ -1,70 +0,0 @@
-// #docregion , init
-import 'dart:async';
-import 'dart:convert';
-import 'dart:math';
-
-import 'package:angular2/core.dart';
-import 'package:http/http.dart';
-import 'package:http/testing.dart';
-
-import 'hero.dart';
-
-@Injectable()
-class InMemoryDataService extends MockClient {
- static final _initialHeroes = [
- {'id': 11, 'name': 'Mr. Nice'},
- {'id': 12, 'name': 'Narco'},
- {'id': 13, 'name': 'Bombasto'},
- {'id': 14, 'name': 'Celeritas'},
- {'id': 15, 'name': 'Magneta'},
- {'id': 16, 'name': 'RubberMan'},
- {'id': 17, 'name': 'Dynama2'},
- {'id': 18, 'name': 'Dr IQ'},
- {'id': 19, 'name': 'Magma'},
- {'id': 20, 'name': 'Tornado'}
- ];
- static final List _heroesDb =
- _initialHeroes.map((json) => new Hero.fromJson(json)).toList();
- static int _nextId = _heroesDb.map((hero) => hero.id).fold(0, max) + 1;
-
- static Future _handler(Request request) async {
- var data;
- switch (request.method) {
- case 'GET':
- final id = int.parse(request.url.pathSegments.last, onError: (_) => null);
- if (id != null) {
- data = _heroesDb.firstWhere((hero) => hero.id == id); // throws if no match
- } else {
- String prefix = request.url.queryParameters['name'] ?? '';
- final regExp = new RegExp(prefix, caseSensitive: false);
- data = _heroesDb.where((hero) => hero.name.contains(regExp)).toList();
- }
- break;
- // #enddocregion init-disabled
- case 'POST':
- var name = JSON.decode(request.body)['name'];
- var newHero = new Hero(_nextId++, name);
- _heroesDb.add(newHero);
- data = newHero;
- break;
- case 'PUT':
- var heroChanges = new Hero.fromJson(JSON.decode(request.body));
- var targetHero = _heroesDb.firstWhere((h) => h.id == heroChanges.id);
- targetHero.name = heroChanges.name;
- data = targetHero;
- break;
- case 'DELETE':
- var id = int.parse(request.url.pathSegments.last);
- _heroesDb.removeWhere((hero) => hero.id == id);
- // No data, so leave it as null.
- break;
- // #docregion init-disabled
- default:
- throw 'Unimplemented HTTP method ${request.method}';
- }
- return new Response(JSON.encode({'data': data}), 200,
- headers: {'content-type': 'application/json'});
- }
-
- InMemoryDataService() : super(_handler);
-}
diff --git a/public/docs/_examples/toh-6/dart/pubspec.yaml b/public/docs/_examples/toh-6/dart/pubspec.yaml
deleted file mode 100644
index 53049ad30b..0000000000
--- a/public/docs/_examples/toh-6/dart/pubspec.yaml
+++ /dev/null
@@ -1,30 +0,0 @@
-# #docregion , additions
-name: angular_tour_of_heroes
- # #enddocregion additions
-description: Tour of Heroes
-version: 0.0.1
-environment:
- sdk: '>=1.19.0 <2.0.0'
- # #docregion additions
-dependencies:
- angular2: ^2.2.0
- http: ^0.11.0
- stream_transformers: ^0.3.0
- # #enddocregion additions
-dev_dependencies:
- browser: ^0.10.0
- dart_to_js_script_rewriter: ^1.0.1
- # #docregion additions
-transformers:
-- angular2:
- # #enddocregion additions
- platform_directives:
- - 'package:angular2/common.dart#COMMON_DIRECTIVES'
- platform_pipes:
- - 'package:angular2/common.dart#COMMON_PIPES'
- # #docregion additions
- entry_points: web/main.dart
- resolved_identifiers:
- BrowserClient: 'package:http/browser_client.dart'
- Client: 'package:http/http.dart'
-- dart_to_js_script_rewriter
diff --git a/public/docs/_examples/toh-6/dart/web/index.html b/public/docs/_examples/toh-6/dart/web/index.html
deleted file mode 100644
index 135bbe1091..0000000000
--- a/public/docs/_examples/toh-6/dart/web/index.html
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
- Angular Tour of Heroes
-
-
-
-
-
-
-
-
- Loading...
-
-
diff --git a/public/docs/_examples/toh-6/dart/web/main.dart b/public/docs/_examples/toh-6/dart/web/main.dart
deleted file mode 100644
index d77da2b613..0000000000
--- a/public/docs/_examples/toh-6/dart/web/main.dart
+++ /dev/null
@@ -1,28 +0,0 @@
-// #docplaster
-// #docregion , v1, v2
-import 'package:angular2/core.dart';
-import 'package:angular2/platform/browser.dart';
-import 'package:angular_tour_of_heroes/app_component.dart';
-// #enddocregion v1
-import 'package:angular_tour_of_heroes/in_memory_data_service.dart';
-import 'package:http/http.dart';
-
-void main() {
- bootstrap(AppComponent,
- [provide(Client, useClass: InMemoryDataService)]
- // Using a real back end? Import browser_client.dart and change the above to
- // [provide(Client, useFactory: () => new BrowserClient(), deps: [])]
- );
-}
-// #enddocregion v2,
-/*
-// #docregion v1
-import 'package:http/browser_client.dart';
-
-void main() {
- bootstrap(AppComponent, [
- provide(BrowserClient, useFactory: () => new BrowserClient(), deps: [])
- ]);
-}
-// #enddocregion v1
-*/
diff --git a/public/docs/_examples/user-input/dart/.docsync.json b/public/docs/_examples/user-input/dart/.docsync.json
deleted file mode 100644
index 14a4c32d55..0000000000
--- a/public/docs/_examples/user-input/dart/.docsync.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "title": "User Input",
- "docPart": "guide"
-}
diff --git a/public/docs/_examples/user-input/dart/example-config.json b/public/docs/_examples/user-input/dart/example-config.json
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/public/docs/_examples/user-input/dart/lib/app_component.dart b/public/docs/_examples/user-input/dart/lib/app_component.dart
deleted file mode 100644
index 5f2c86f8d9..0000000000
--- a/public/docs/_examples/user-input/dart/lib/app_component.dart
+++ /dev/null
@@ -1,23 +0,0 @@
-// #docregion
-import 'package:angular2/core.dart';
-
-import 'click_me_component.dart';
-import 'click_me2_component.dart';
-import 'keyup_components.dart';
-import 'little_tour_component.dart';
-import 'loop_back_component.dart';
-
-@Component(
- selector: 'my-app',
- templateUrl: 'app_component.html',
- directives: const [
- ClickMeComponent,
- ClickMe2Component,
- KeyUpComponentV1,
- KeyUpComponentV2,
- KeyUpComponentV3,
- KeyUpComponentV4,
- LoopBackComponent,
- LittleTourComponent
- ])
-class AppComponent {}
diff --git a/public/docs/_examples/user-input/dart/lib/app_component.html b/public/docs/_examples/user-input/dart/lib/app_component.html
deleted file mode 100644
index ecda463827..0000000000
--- a/public/docs/_examples/user-input/dart/lib/app_component.html
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
-
-Give me some keys!
-
-
-keyup loop-back component
-
-
-
-Give me some more keys!
-
-
-Type away! Press [enter] when done.
-
-
-Type away! Press [enter] or click elsewhere when done.
-
-
-Little Tour of Heroes
-Add a new hero
-
diff --git a/public/docs/_examples/user-input/dart/lib/click_me2_component.dart b/public/docs/_examples/user-input/dart/lib/click_me2_component.dart
deleted file mode 100644
index 3329a6692e..0000000000
--- a/public/docs/_examples/user-input/dart/lib/click_me2_component.dart
+++ /dev/null
@@ -1,18 +0,0 @@
-// #docregion
-import 'package:angular2/core.dart';
-
-@Component(
- selector: 'click-me2',
- template: '''
-
- {{clickMessage}}''')
-class ClickMe2Component {
- String clickMessage = '';
- int _clicks = 1;
-
- void onClickMe2(dynamic event) {
- var evtMsg =
- event != null ? ' Event target is ' + event.target.tagName : '';
- clickMessage = ('Click #${_clicks++}. ${evtMsg}');
- }
-}
diff --git a/public/docs/_examples/user-input/dart/lib/click_me_component.dart b/public/docs/_examples/user-input/dart/lib/click_me_component.dart
deleted file mode 100644
index c31d92e78b..0000000000
--- a/public/docs/_examples/user-input/dart/lib/click_me_component.dart
+++ /dev/null
@@ -1,22 +0,0 @@
-/* FOR DOCS ... MUST MATCH ClickMeComponent template
-// #docregion click-me-button
-
-// #enddocregion click-me-button
-*/
-
-// #docregion
-import 'package:angular2/core.dart';
-
-// #docregion click-me-component
-@Component(
- selector: 'click-me',
- template: '''
-
- {{clickMessage}}''')
-class ClickMeComponent {
- String clickMessage = '';
-
- void onClickMe() {
- clickMessage = 'You are my hero!';
- }
-}
diff --git a/public/docs/_examples/user-input/dart/lib/keyup_components.dart b/public/docs/_examples/user-input/dart/lib/keyup_components.dart
deleted file mode 100644
index c38a51e9a3..0000000000
--- a/public/docs/_examples/user-input/dart/lib/keyup_components.dart
+++ /dev/null
@@ -1,83 +0,0 @@
-// #docplaster
-// #docregion
-import 'dart:html';
-
-import 'package:angular2/core.dart';
-
-// #docregion key-up-component-1
-@Component(
- selector: 'key-up1',
-// #docregion key-up-component-1-template
- template: '''
-
- {{values}}
- '''
-// #enddocregion key-up-component-1-template
- )
-// #docregion key-up-component-1-class, key-up-component-1-class-no-type
-class KeyUpComponentV1 {
- String values = '';
-
- // #enddocregion key-up-component-1-class, key-up-component-1-class-no-type
- /*
- // #docregion key-up-component-1-class-no-type
- onKey(dynamic event) {
- values += event.target.value + ' | ';
- }
- // #enddocregion key-up-component-1-class-no-type
- */
- // #docregion key-up-component-1-class
- onKey(KeyboardEvent event) {
- InputElement el = event.target;
- values += '${el.value} | ';
- }
-// #docregion key-up-component-1-class-no-type
-}
-// #enddocregion key-up-component-1,key-up-component-1-class, key-up-component-1-class-no-type
-
-//////////////////////////////////////////
-
-// #docregion key-up-component-2
-@Component(
- selector: 'key-up2',
- template: '''
-
- {{values}}
- ''')
-class KeyUpComponentV2 {
- String values = '';
- onKey(value) {
- values += '$value | ';
- }
-}
-// #enddocregion key-up-component-2
-
-//////////////////////////////////////////
-
-// #docregion key-up-component-3
-@Component(
- selector: 'key-up3',
- template: '''
-
- {{values}}
- ''')
-class KeyUpComponentV3 {
- String values = '';
-}
-// #enddocregion key-up-component-3
-
-//////////////////////////////////////////
-
-// #docregion key-up-component-4
-@Component(
- selector: 'key-up4',
- template: '''
-
- {{values}}
- ''')
-class KeyUpComponentV4 {
- String values = '';
-}
-// #enddocregion key-up-component-4
diff --git a/public/docs/_examples/user-input/dart/lib/little_tour_component.dart b/public/docs/_examples/user-input/dart/lib/little_tour_component.dart
deleted file mode 100644
index 4e8f066a0a..0000000000
--- a/public/docs/_examples/user-input/dart/lib/little_tour_component.dart
+++ /dev/null
@@ -1,25 +0,0 @@
-// #docregion
-import 'package:angular2/core.dart';
-
-// #docregion little-tour
-@Component(
- selector: 'little-tour',
- template: '''
-
-
-
-
-
- ''')
-class LittleTourComponent {
- List heroes = ['Windstorm', 'Bombasto', 'Magneta', 'Tornado'];
-
- void addHero(String newHero) {
- if (newHero?.length > 0) {
- heroes.add(newHero);
- }
- }
-}
-// #enddocregion little-tour
diff --git a/public/docs/_examples/user-input/dart/lib/loop_back_component.dart b/public/docs/_examples/user-input/dart/lib/loop_back_component.dart
deleted file mode 100644
index f2ceb75d11..0000000000
--- a/public/docs/_examples/user-input/dart/lib/loop_back_component.dart
+++ /dev/null
@@ -1,12 +0,0 @@
-// #docregion
-import 'package:angular2/core.dart';
-
-// #docregion loop-back-component
-@Component(
- selector: 'loop-back',
- template: '''
-
- {{box.value}}
- ''')
-class LoopBackComponent {}
-// #enddocregion loop-back-component
diff --git a/public/docs/_examples/user-input/dart/pubspec.yaml b/public/docs/_examples/user-input/dart/pubspec.yaml
deleted file mode 100644
index 5433ce187f..0000000000
--- a/public/docs/_examples/user-input/dart/pubspec.yaml
+++ /dev/null
@@ -1,19 +0,0 @@
-# #docregion
-name: user_input
-description: User input example
-version: 0.0.1
-environment:
- sdk: '>=1.19.0 <2.0.0'
-dependencies:
- angular2: ^2.2.0
-dev_dependencies:
- browser: ^0.10.0
- dart_to_js_script_rewriter: ^1.0.1
-transformers:
-- angular2:
- platform_directives:
- - 'package:angular2/common.dart#COMMON_DIRECTIVES'
- platform_pipes:
- - 'package:angular2/common.dart#COMMON_PIPES'
- entry_points: web/main.dart
-- dart_to_js_script_rewriter
diff --git a/public/docs/_examples/user-input/dart/web/index.html b/public/docs/_examples/user-input/dart/web/index.html
deleted file mode 100644
index 6081616684..0000000000
--- a/public/docs/_examples/user-input/dart/web/index.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
- User Input
-
-
-
-
-
-
-
- Loading...
-
-
diff --git a/public/docs/_examples/user-input/dart/web/main.dart b/public/docs/_examples/user-input/dart/web/main.dart
deleted file mode 100644
index fc77aef43b..0000000000
--- a/public/docs/_examples/user-input/dart/web/main.dart
+++ /dev/null
@@ -1,8 +0,0 @@
-// #docregion
-import 'package:angular2/platform/browser.dart';
-
-import 'package:user_input/app_component.dart';
-
-main() {
- bootstrap(AppComponent);
-}
diff --git a/public/docs/_examples/user-input/dart/web/user-input-styles.css b/public/docs/_examples/user-input/dart/web/user-input-styles.css
deleted file mode 100644
index b2133e5103..0000000000
--- a/public/docs/_examples/user-input/dart/web/user-input-styles.css
+++ /dev/null
@@ -1,9 +0,0 @@
-fieldset {border-style:none}
-img {height: 100px;}
-.box {border: 1px solid black; padding:3px}
-.child-div {margin-left: 1em; font-weight: normal}
-.hidden {display: none}
-.parent-div {margin-top: 1em; font-weight: bold}
-.special {font-weight:bold;}
-.toe {margin-left: 1em; font-style: italic;}
-little-hero {color:blue; font-size: smaller; background-color: Turquoise }
\ No newline at end of file