docs(dart): update sample code to be more uniform, use b2

closes #766
This commit is contained in:
Kathy Walrath
2016-01-27 15:51:50 -08:00
parent e258e0f346
commit a7826ee44c
44 changed files with 107 additions and 91 deletions
@@ -1,6 +1,4 @@
// #docregion all
library hero_form.hero;
class Hero {
int number;
String name;
@@ -1,10 +1,9 @@
// #docplaster
// #docregion
// #docregion no-todo
library hero_form.hero_form_component;
import 'package:angular2/angular2.dart';
import 'package:hero_form/hero.dart';
import 'hero.dart';
const List<String> _powers = const [
'Really Smart',
@@ -1,6 +1,4 @@
// #docregion
library hero_form.hero_form_component;
import 'package:angular2/angular2.dart';
@Component(selector: 'hero-form', template: 'Hero form will go here')
@@ -2,13 +2,16 @@
name: hero_form
description: Form example
version: 0.0.1
environment:
sdk: '>=1.13.0 <2.0.0'
dependencies:
angular2: 2.0.0-beta.0
angular2: 2.0.0-beta.2
browser: ^0.10.0
dart_to_js_script_rewriter: ^0.1.0
transformers:
- angular2:
platform_directives:
- 'package:angular2/common.dart#CORE_DIRECTIVES'
- 'package:angular2/common.dart#FORM_DIRECTIVES'
entry_points: web/main.dart
- dart_to_js_script_rewriter