docs(dart): update to b12
Also update dart_to_js_script_rewriter dependency to ^1.0.1, and change most angular2.dart imports to be core.dart instead. The pipes example broke without the angular2.dart import, so I let it be. The server-communication sample has never worked for me, so I changed it but might have broken it further. closes #1007
This commit is contained in:
parent
5f73911eaf
commit
185f9a7049
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'hero.dart';
|
import 'hero.dart';
|
||||||
import 'logger_service.dart';
|
import 'logger_service.dart';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'hero.dart';
|
import 'hero.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docplaster
|
// #docplaster
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'hero.dart';
|
import 'hero.dart';
|
||||||
import 'hero_detail_component.dart';
|
import 'hero_detail_component.dart';
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'backend_service.dart';
|
import 'backend_service.dart';
|
||||||
import 'hero.dart';
|
import 'hero.dart';
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'dart:html';
|
import 'dart:html';
|
||||||
|
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
/// A service for logging messages of various types.
|
/// A service for logging messages of various types.
|
||||||
///
|
///
|
||||||
|
|
|
@ -5,9 +5,9 @@ version: 0.0.1
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=1.13.0 <2.0.0'
|
sdk: '>=1.13.0 <2.0.0'
|
||||||
dependencies:
|
dependencies:
|
||||||
angular2: 2.0.0-beta.11
|
angular2: 2.0.0-beta.12
|
||||||
browser: ^0.10.0
|
browser: ^0.10.0
|
||||||
dart_to_js_script_rewriter: ^0.1.0
|
dart_to_js_script_rewriter: ^1.0.1
|
||||||
transformers:
|
transformers:
|
||||||
- angular2:
|
- angular2:
|
||||||
platform_directives: 'package:angular2/common.dart#CORE_DIRECTIVES'
|
platform_directives: 'package:angular2/common.dart#CORE_DIRECTIVES'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'highlight_directive.dart';
|
import 'highlight_directive.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// #docplaster
|
// #docplaster
|
||||||
// #docregion full
|
// #docregion full
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
@Directive(selector: '[my-highlight]', host: const {
|
@Directive(selector: '[my-highlight]', host: const {
|
||||||
'(mouseenter)': 'onMouseEnter()',
|
'(mouseenter)': 'onMouseEnter()',
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
library attribute_directives.highlight_directive;
|
library attribute_directives.highlight_directive;
|
||||||
|
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
@Directive(selector: '[my-highlight]')
|
@Directive(selector: '[my-highlight]')
|
||||||
class Highlight {
|
class Highlight {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
@Directive(selector: '[my-highlight]',
|
@Directive(selector: '[my-highlight]',
|
||||||
// #docregion host
|
// #docregion host
|
||||||
|
|
|
@ -5,9 +5,9 @@ version: 0.0.1
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=1.13.0 <2.0.0'
|
sdk: '>=1.13.0 <2.0.0'
|
||||||
dependencies:
|
dependencies:
|
||||||
angular2: 2.0.0-beta.11
|
angular2: 2.0.0-beta.12
|
||||||
browser: ^0.10.0
|
browser: ^0.10.0
|
||||||
dart_to_js_script_rewriter: ^0.1.0
|
dart_to_js_script_rewriter: ^1.0.1
|
||||||
transformers:
|
transformers:
|
||||||
- angular2:
|
- angular2:
|
||||||
platform_directives: 'package:angular2/common.dart#CORE_DIRECTIVES'
|
platform_directives: 'package:angular2/common.dart#CORE_DIRECTIVES'
|
||||||
|
|
|
@ -7,7 +7,7 @@ environment:
|
||||||
dependencies:
|
dependencies:
|
||||||
angular2: 2.0.0-beta.12
|
angular2: 2.0.0-beta.12
|
||||||
browser: ^0.10.0
|
browser: ^0.10.0
|
||||||
dart_to_js_script_rewriter: ^0.1.0
|
dart_to_js_script_rewriter: ^1.0.1
|
||||||
transformers:
|
transformers:
|
||||||
- angular2:
|
- angular2:
|
||||||
platform_directives: 'package:angular2/common.dart#COMMON_DIRECTIVES'
|
platform_directives: 'package:angular2/common.dart#COMMON_DIRECTIVES'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'hero.dart';
|
import 'hero.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
@Component(
|
@Component(
|
||||||
selector: 'my-app',
|
selector: 'my-app',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
// #docregion mock-heroes
|
// #docregion mock-heroes
|
||||||
const List<String> _heroes = const [
|
const List<String> _heroes = const [
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
// #docregion heroes
|
// #docregion heroes
|
||||||
import 'hero.dart';
|
import 'hero.dart';
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,9 @@ version: 0.0.1
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=1.13.0 <2.0.0'
|
sdk: '>=1.13.0 <2.0.0'
|
||||||
dependencies:
|
dependencies:
|
||||||
angular2: 2.0.0-beta.11
|
angular2: 2.0.0-beta.12
|
||||||
browser: ^0.10.0
|
browser: ^0.10.0
|
||||||
dart_to_js_script_rewriter: ^0.1.0
|
dart_to_js_script_rewriter: ^1.0.1
|
||||||
transformers:
|
transformers:
|
||||||
- angular2:
|
- angular2:
|
||||||
platform_directives: 'package:angular2/common.dart#CORE_DIRECTIVES'
|
platform_directives: 'package:angular2/common.dart#CORE_DIRECTIVES'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// #docplaster
|
// #docplaster
|
||||||
// #docregion
|
// #docregion
|
||||||
// #docregion no-todo
|
// #docregion no-todo
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'hero.dart';
|
import 'hero.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
@Component(selector: 'hero-form', template: 'Hero form will go here')
|
@Component(selector: 'hero-form', template: 'Hero form will go here')
|
||||||
class HeroFormComponent {}
|
class HeroFormComponent {}
|
||||||
|
|
|
@ -5,9 +5,9 @@ version: 0.0.1
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=1.13.0 <2.0.0'
|
sdk: '>=1.13.0 <2.0.0'
|
||||||
dependencies:
|
dependencies:
|
||||||
angular2: 2.0.0-beta.11
|
angular2: 2.0.0-beta.12
|
||||||
browser: ^0.10.0
|
browser: ^0.10.0
|
||||||
dart_to_js_script_rewriter: ^0.1.0
|
dart_to_js_script_rewriter: ^1.0.1
|
||||||
transformers:
|
transformers:
|
||||||
- angular2:
|
- angular2:
|
||||||
platform_directives:
|
platform_directives:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
class Hero {
|
class Hero {
|
||||||
String name;
|
String name;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'hero.dart';
|
import 'hero.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'hero.dart';
|
import 'hero.dart';
|
||||||
import 'restore_service.dart';
|
import 'restore_service.dart';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'edit_item.dart';
|
import 'edit_item.dart';
|
||||||
import 'hero.dart';
|
import 'hero.dart';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'hero.dart';
|
import 'hero.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
class RestoreService<T> {
|
class RestoreService<T> {
|
||||||
|
|
|
@ -5,9 +5,9 @@ version: 0.0.1
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=1.13.0 <2.0.0'
|
sdk: '>=1.13.0 <2.0.0'
|
||||||
dependencies:
|
dependencies:
|
||||||
angular2: 2.0.0-beta.11
|
angular2: 2.0.0-beta.12
|
||||||
browser: ^0.10.0
|
browser: ^0.10.0
|
||||||
dart_to_js_script_rewriter: ^0.1.0
|
dart_to_js_script_rewriter: ^1.0.1
|
||||||
transformers:
|
transformers:
|
||||||
- angular2:
|
- angular2:
|
||||||
platform_directives: 'package:angular2/common.dart#COMMON_DIRECTIVES'
|
platform_directives: 'package:angular2/common.dart#COMMON_DIRECTIVES'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'child_component.dart';
|
import 'child_component.dart';
|
||||||
import 'logger_service.dart';
|
import 'logger_service.dart';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'child_component.dart';
|
import 'child_component.dart';
|
||||||
import 'logger_service.dart';
|
import 'logger_service.dart';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'after_content_parent.dart';
|
import 'after_content_parent.dart';
|
||||||
import 'after_view_component.dart';
|
import 'after_view_component.dart';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
@Component(
|
@Component(
|
||||||
selector: 'my-child',
|
selector: 'my-child',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'logger_service.dart';
|
import 'logger_service.dart';
|
||||||
import 'spy_directive.dart';
|
import 'spy_directive.dart';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
class LoggerService {
|
class LoggerService {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
class Hero {
|
class Hero {
|
||||||
String name;
|
String name;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
// #docregion lc-imports
|
// #docregion lc-imports
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'logger_service.dart';
|
import 'logger_service.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'logger_service.dart';
|
import 'logger_service.dart';
|
||||||
import 'peek_a_boo_component.dart';
|
import 'peek_a_boo_component.dart';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'logger_service.dart';
|
import 'logger_service.dart';
|
||||||
import 'spy_directive.dart';
|
import 'spy_directive.dart';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'logger_service.dart';
|
import 'logger_service.dart';
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,9 @@ version: 0.0.1
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=1.13.0 <2.0.0'
|
sdk: '>=1.13.0 <2.0.0'
|
||||||
dependencies:
|
dependencies:
|
||||||
angular2: 2.0.0-beta.11
|
angular2: 2.0.0-beta.12
|
||||||
browser: ^0.10.0
|
browser: ^0.10.0
|
||||||
dart_to_js_script_rewriter: ^0.1.0
|
dart_to_js_script_rewriter: ^1.0.1
|
||||||
transformers:
|
transformers:
|
||||||
- angular2:
|
- angular2:
|
||||||
platform_directives:
|
platform_directives:
|
||||||
|
|
|
@ -5,9 +5,9 @@ version: 0.0.1
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=1.13.0 <2.0.0'
|
sdk: '>=1.13.0 <2.0.0'
|
||||||
dependencies:
|
dependencies:
|
||||||
angular2: 2.0.0-beta.11
|
angular2: 2.0.0-beta.12
|
||||||
browser: ^0.10.0
|
browser: ^0.10.0
|
||||||
dart_to_js_script_rewriter: ^0.1.0
|
dart_to_js_script_rewriter: ^1.0.1
|
||||||
transformers:
|
transformers:
|
||||||
- angular2:
|
- angular2:
|
||||||
platform_directives: 'package:angular2/src/common/directives.dart#CORE_DIRECTIVES'
|
platform_directives: 'package:angular2/src/common/directives.dart#CORE_DIRECTIVES'
|
||||||
|
|
|
@ -5,7 +5,7 @@ version: 0.0.1
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=1.13.0 <2.0.0'
|
sdk: '>=1.13.0 <2.0.0'
|
||||||
dependencies:
|
dependencies:
|
||||||
angular2: 2.0.0-beta.11
|
angular2: 2.0.0-beta.12
|
||||||
browser: ^0.10.0
|
browser: ^0.10.0
|
||||||
transformers:
|
transformers:
|
||||||
- angular2:
|
- angular2:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
|
||||||
import 'package:angular2/bootstrap.dart';
|
import 'package:angular2/bootstrap.dart';
|
||||||
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
@Component(selector: 'my-app', template: '<h1>My First Angular 2 App</h1>')
|
@Component(selector: 'my-app', template: '<h1>My First Angular 2 App</h1>')
|
||||||
class AppComponent {}
|
class AppComponent {}
|
||||||
|
|
|
@ -5,9 +5,9 @@ version: 0.0.1
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=1.13.0 <2.0.0'
|
sdk: '>=1.13.0 <2.0.0'
|
||||||
dependencies:
|
dependencies:
|
||||||
angular2: 2.0.0-beta.11
|
angular2: 2.0.0-beta.12
|
||||||
browser: ^0.10.0
|
browser: ^0.10.0
|
||||||
dart_to_js_script_rewriter: ^0.1.0
|
dart_to_js_script_rewriter: ^1.0.1
|
||||||
transformers:
|
transformers:
|
||||||
- angular2:
|
- angular2:
|
||||||
entry_points: web/main.dart
|
entry_points: web/main.dart
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
|
||||||
import 'package:angular2/bootstrap.dart';
|
import 'package:angular2/bootstrap.dart';
|
||||||
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
@Component(selector: 'my-app', template: '<h1>My First Angular 2 App</h1>')
|
@Component(selector: 'my-app', template: '<h1>My First Angular 2 App</h1>')
|
||||||
class AppComponent {}
|
class AppComponent {}
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'package:angular2/angular2.dart';
|
|
||||||
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'hero.dart';
|
import 'hero.dart';
|
||||||
import 'hero_service.dart';
|
import 'hero_service.dart';
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
// #enddocregion v1
|
// #enddocregion v1
|
||||||
// #docregion import-request-options
|
// #docregion import-request-options
|
||||||
import 'package:http/browser_client.dart';
|
import 'package:http/browser_client.dart';
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
import 'package:http_in_memory_web_api/http_in_memory_web_api.dart';
|
import 'package:http_in_memory_web_api/http_in_memory_web_api.dart';
|
||||||
import 'package:http/browser_client.dart';
|
import 'package:http/browser_client.dart';
|
||||||
import 'package:server_communication/hero_data.dart';
|
import 'package:server_communication/hero_data.dart';
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'package:angular2/angular2.dart';
|
|
||||||
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'wikipedia_service.dart';
|
import 'wikipedia_service.dart';
|
||||||
|
|
||||||
@Component(
|
@Component(
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
import 'package:stream_transformers/stream_transformers.dart';
|
import 'package:stream_transformers/stream_transformers.dart';
|
||||||
|
|
||||||
import 'wikipedia_service.dart';
|
import 'wikipedia_service.dart';
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'package:angular2/angular2.dart';
|
|
||||||
|
import 'package:angular2/core.dart';
|
||||||
import 'package:jsonpadding/jsonpadding.dart';
|
import 'package:jsonpadding/jsonpadding.dart';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
|
|
@ -5,9 +5,9 @@ version: 0.0.1
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=1.13.0 <2.0.0'
|
sdk: '>=1.13.0 <2.0.0'
|
||||||
dependencies:
|
dependencies:
|
||||||
angular2: 2.0.0-beta.11
|
angular2: 2.0.0-beta.12
|
||||||
browser: ^0.10.0
|
browser: ^0.10.0
|
||||||
dart_to_js_script_rewriter: ^0.1.0
|
dart_to_js_script_rewriter: ^1.0.1
|
||||||
http: ^0.11.3+3
|
http: ^0.11.3+3
|
||||||
jsonpadding: ^0.1.0
|
jsonpadding: ^0.1.0
|
||||||
stream_transformers: ^0.3.0+3
|
stream_transformers: ^0.3.0+3
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
int nextId = 1;
|
int nextId = 1;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// #docplaster
|
// #docplaster
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'heavy_loader_component.dart';
|
import 'heavy_loader_component.dart';
|
||||||
import 'unless_directive.dart';
|
import 'unless_directive.dart';
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// #docplaster
|
// #docplaster
|
||||||
// #docregion
|
// #docregion
|
||||||
// #docregion unless-declaration
|
// #docregion unless-declaration
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
// #enddocregion unless-declaration
|
// #enddocregion unless-declaration
|
||||||
|
|
||||||
// #docregion unless-declaration
|
// #docregion unless-declaration
|
||||||
|
|
|
@ -5,9 +5,9 @@ version: 0.0.1
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=1.13.0 <2.0.0'
|
sdk: '>=1.13.0 <2.0.0'
|
||||||
dependencies:
|
dependencies:
|
||||||
angular2: 2.0.0-beta.11
|
angular2: 2.0.0-beta.12
|
||||||
browser: ^0.10.0
|
browser: ^0.10.0
|
||||||
dart_to_js_script_rewriter: ^0.1.0
|
dart_to_js_script_rewriter: ^1.0.1
|
||||||
transformers:
|
transformers:
|
||||||
- angular2:
|
- angular2:
|
||||||
platform_directives: 'package:angular2/common.dart#CORE_DIRECTIVES'
|
platform_directives: 'package:angular2/common.dart#CORE_DIRECTIVES'
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'dart:html';
|
import 'dart:html';
|
||||||
|
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'hero.dart';
|
import 'hero.dart';
|
||||||
import 'hero_detail_component.dart';
|
import 'hero_detail_component.dart';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// #docplaster
|
// #docplaster
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'hero.dart';
|
import 'hero.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// #docplaster
|
// #docplaster
|
||||||
import 'dart:html';
|
import 'dart:html';
|
||||||
|
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
@Directive(selector: '[myClick]')
|
@Directive(selector: '[myClick]')
|
||||||
class MyClickDirective {
|
class MyClickDirective {
|
||||||
|
|
|
@ -5,9 +5,9 @@ version: 0.0.1
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=1.13.0 <2.0.0'
|
sdk: '>=1.13.0 <2.0.0'
|
||||||
dependencies:
|
dependencies:
|
||||||
angular2: 2.0.0-beta.11
|
angular2: 2.0.0-beta.12
|
||||||
browser: ^0.10.0
|
browser: ^0.10.0
|
||||||
dart_to_js_script_rewriter: ^0.1.0
|
dart_to_js_script_rewriter: ^1.0.1
|
||||||
transformers:
|
transformers:
|
||||||
- angular2:
|
- angular2:
|
||||||
platform_pipes: 'package:angular2/common.dart#COMMON_PIPES'
|
platform_pipes: 'package:angular2/common.dart#COMMON_PIPES'
|
||||||
|
@ -16,5 +16,3 @@ transformers:
|
||||||
- 'package:angular2/common.dart#FORM_DIRECTIVES'
|
- 'package:angular2/common.dart#FORM_DIRECTIVES'
|
||||||
entry_points: web/main.dart
|
entry_points: web/main.dart
|
||||||
- dart_to_js_script_rewriter
|
- dart_to_js_script_rewriter
|
||||||
- $dart2js:
|
|
||||||
checked: true
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// #docplaster
|
// #docplaster
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
import 'package:angular2/router.dart';
|
import 'package:angular2/router.dart';
|
||||||
|
|
||||||
import 'package:angular2_tour_of_heroes/heroes_component.dart';
|
import 'package:angular2_tour_of_heroes/heroes_component.dart';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// #docplaster
|
// #docplaster
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
// #enddocregion
|
// #enddocregion
|
||||||
import 'package:angular2/router.dart'; // for testing only
|
import 'package:angular2/router.dart'; // for testing only
|
||||||
// #docregion
|
// #docregion
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// #docplaster
|
// #docplaster
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
// #docregion import-router
|
// #docregion import-router
|
||||||
import 'package:angular2/router.dart';
|
import 'package:angular2/router.dart';
|
||||||
// #enddocregion import-router
|
// #enddocregion import-router
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// #docplaster
|
// #docplaster
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
// #docregion import-router
|
// #docregion import-router
|
||||||
import 'package:angular2/router.dart';
|
import 'package:angular2/router.dart';
|
||||||
// #enddocregion import-router
|
// #enddocregion import-router
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
@Component(
|
@Component(
|
||||||
selector: 'my-dashboard',
|
selector: 'my-dashboard',
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// #docplaster
|
// #docplaster
|
||||||
// #docregion imports
|
// #docregion imports
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'hero.dart';
|
import 'hero.dart';
|
||||||
import 'hero_service.dart';
|
import 'hero_service.dart';
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
import 'dart:html';
|
import 'dart:html';
|
||||||
|
|
||||||
// #docregion import-oninit
|
// #docregion import-oninit
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
// #enddocregion import-oninit
|
// #enddocregion import-oninit
|
||||||
// #docregion import-route-params
|
// #docregion import-route-params
|
||||||
import 'package:angular2/router.dart';
|
import 'package:angular2/router.dart';
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'hero.dart';
|
import 'hero.dart';
|
||||||
import 'mock_heroes.dart';
|
import 'mock_heroes.dart';
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
import 'package:angular2/router.dart';
|
import 'package:angular2/router.dart';
|
||||||
|
|
||||||
import 'hero.dart';
|
import 'hero.dart';
|
||||||
|
|
|
@ -5,14 +5,12 @@ version: 0.0.1
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=1.13.0 <2.0.0'
|
sdk: '>=1.13.0 <2.0.0'
|
||||||
dependencies:
|
dependencies:
|
||||||
angular2: 2.0.0-beta.11
|
angular2: 2.0.0-beta.12
|
||||||
browser: ^0.10.0
|
browser: ^0.10.0
|
||||||
dart_to_js_script_rewriter: ^0.1.0+4
|
dart_to_js_script_rewriter: ^1.0.1
|
||||||
transformers:
|
transformers:
|
||||||
- angular2:
|
- angular2:
|
||||||
platform_directives: package:angular2/common.dart#COMMON_DIRECTIVES
|
platform_directives: package:angular2/common.dart#COMMON_DIRECTIVES
|
||||||
platform_pipes: package:angular2/common.dart#COMMON_PIPES
|
platform_pipes: package:angular2/common.dart#COMMON_PIPES
|
||||||
entry_points: web/main.dart
|
entry_points: web/main.dart
|
||||||
- dart_to_js_script_rewriter
|
- dart_to_js_script_rewriter
|
||||||
- $dart2js:
|
|
||||||
checked: true
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
import 'click_me_component.dart';
|
import 'click_me_component.dart';
|
||||||
import 'click_me_component_2.dart';
|
import 'click_me_component_2.dart';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
// #docregion click-me-component
|
// #docregion click-me-component
|
||||||
@Component(
|
@Component(
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
@Component(
|
@Component(
|
||||||
selector: 'click-me2',
|
selector: 'click-me2',
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'dart:html';
|
import 'dart:html';
|
||||||
|
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
// #docregion key-up-component-1
|
// #docregion key-up-component-1
|
||||||
@Component(
|
@Component(
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
// #docregion little-tour
|
// #docregion little-tour
|
||||||
@Component(
|
@Component(
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// #docregion
|
// #docregion
|
||||||
import 'package:angular2/angular2.dart';
|
import 'package:angular2/core.dart';
|
||||||
|
|
||||||
// #docregion loop-back-component
|
// #docregion loop-back-component
|
||||||
@Component(
|
@Component(
|
||||||
|
|
|
@ -5,9 +5,9 @@ version: 0.0.1
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=1.13.0 <2.0.0'
|
sdk: '>=1.13.0 <2.0.0'
|
||||||
dependencies:
|
dependencies:
|
||||||
angular2: 2.0.0-beta.11
|
angular2: 2.0.0-beta.12
|
||||||
browser: ^0.10.0
|
browser: ^0.10.0
|
||||||
dart_to_js_script_rewriter: ^0.1.0
|
dart_to_js_script_rewriter: ^1.0.1
|
||||||
transformers:
|
transformers:
|
||||||
- angular2:
|
- angular2:
|
||||||
platform_directives: 'package:angular2/common.dart#CORE_DIRECTIVES'
|
platform_directives: 'package:angular2/common.dart#CORE_DIRECTIVES'
|
||||||
|
|
|
@ -43,7 +43,7 @@ figure.image-display
|
||||||
|
|
||||||
In `main.dart`, importing `app_component.dart` lets us implement part
|
In `main.dart`, importing `app_component.dart` lets us implement part
|
||||||
of the app in a different Dart file. The QuickStart version of `main.dart`
|
of the app in a different Dart file. The QuickStart version of `main.dart`
|
||||||
imported `angular2.dart`, but we don't need that import here because
|
imported `core.dart`, but we don't need that import here because
|
||||||
this version of `main.dart` is so basic: it only bootstraps the app,
|
this version of `main.dart` is so basic: it only bootstraps the app,
|
||||||
and doesn't implement any components or other injectable types.
|
and doesn't implement any components or other injectable types.
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ p.
|
||||||
specify the angular2 and browser packages as dependencies,
|
specify the angular2 and browser packages as dependencies,
|
||||||
as well as the angular2 transformer.
|
as well as the angular2 transformer.
|
||||||
Angular 2 is still changing, so provide an exact version:
|
Angular 2 is still changing, so provide an exact version:
|
||||||
<b>2.0.0-beta.11</b>.
|
<b>2.0.0-beta.12</b>.
|
||||||
|
|
||||||
+makeExample('quickstart/dart/ex1/pubspec.yaml', null, 'pubspec.yaml')
|
+makeExample('quickstart/dart/ex1/pubspec.yaml', null, 'pubspec.yaml')
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ p.
|
||||||
consist of more components arising in tree-like fashion from this root.
|
consist of more components arising in tree-like fashion from this root.
|
||||||
|
|
||||||
The top lines import two libraries.
|
The top lines import two libraries.
|
||||||
*All* Dart files that use Angular APIs import `angular2.dart`.
|
*All* Dart files that use Angular APIs import `core.dart`.
|
||||||
Only files that call `bootstrap()` import `bootstrap.dart`.
|
Only files that call `bootstrap()` import `bootstrap.dart`.
|
||||||
|
|
||||||
//- ##########################
|
//- ##########################
|
||||||
|
|
Loading…
Reference in New Issue