Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 2e3af5c

Browse files
committed
docs(dart/quickstart): merge 2 examples into 1
closes #1031
1 parent 082932a commit 2e3af5c

File tree

7 files changed

+10
-43
lines changed

7 files changed

+10
-43
lines changed

public/docs/_examples/quickstart/dart/ex1/pubspec.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

public/docs/_examples/quickstart/dart/ex2/web/index.html

Lines changed: 0 additions & 16 deletions
This file was deleted.

public/docs/_examples/quickstart/dart/ex2/web/main.dart

Lines changed: 0 additions & 10 deletions
This file was deleted.

public/docs/_examples/quickstart/dart/ex2/pubspec.yaml renamed to public/docs/_examples/quickstart/dart/pubspec.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
# #docplaster
12
# #docregion
3+
# #docregion no-rewriter
24
name: angular2_getting_started
35
description: QuickStart
46
version: 0.0.1
@@ -7,8 +9,11 @@ environment:
79
dependencies:
810
angular2: 2.0.0-beta.12
911
browser: ^0.10.0
12+
# #enddocregion no-rewriter
1013
dart_to_js_script_rewriter: ^1.0.1
14+
# #docregion no-rewriter
1115
transformers:
1216
- angular2:
1317
entry_points: web/main.dart
18+
# #enddocregion no-rewriter
1419
- dart_to_js_script_rewriter

public/docs/dart/latest/quickstart.jade

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ p.
4343
Angular 2 is still changing, so provide an exact version:
4444
<b>2.0.0-beta.12</b>.
4545

46-
+makeExample('quickstart/dart/ex1/pubspec.yaml', null, 'pubspec.yaml')
46+
+makeExample('quickstart/dart/pubspec.yaml', 'no-rewriter', 'pubspec.yaml')
4747

4848
p.
4949
In the same directory, create a <code>web</code> directory, and then
@@ -71,7 +71,7 @@ p.
7171
p.
7272
Paste the following code into <code>web/main.dart</code>:
7373

74-
+makeExample('quickstart/dart/ex1/web/main.dart', null, 'web/main.dart')
74+
+makeExample('quickstart/dart/web/main.dart', null, 'web/main.dart')
7575

7676
:marked
7777
You've just defined an Angular 2 **component**,
@@ -119,7 +119,7 @@ p.
119119
Create a file named <code>web/index.html</code> that contains
120120
the following code:
121121

122-
+makeExample('quickstart/dart/ex1/web/index.html', null, 'web/index.html')
122+
+makeExample('quickstart/dart/web/index.html', null, 'web/index.html')
123123

124124
:marked
125125
The `<my-app>` tag in the `<body>` is
@@ -170,7 +170,7 @@ p.
170170
in both the `dependencies` and `transformers` sections.
171171

172172
- var stylePattern = { pnk: /(dart_to_js_script_rewriter.*$)|(- dart_to_js_script_rewriter.*$)/gm, otl: /(dependencies:)|(transformers:)/g };
173-
+makeExample('quickstart/dart/ex2/pubspec.yaml', null, 'pubspec.yaml', stylePattern)
173+
+makeExample('quickstart/dart/pubspec.yaml', null, 'pubspec.yaml', stylePattern)
174174

175175
p.
176176
Then compile your Dart code to JavaScript,
@@ -194,7 +194,7 @@ p.
194194
configure the Angular transformer:
195195

196196
- var stylePattern = { otl: /(transformers:)|(- angular2:)|(entry_points.*$)/gm };
197-
+makeExample('quickstart/dart/ex2/pubspec.yaml', null, 'pubspec.yaml', stylePattern)
197+
+makeExample('quickstart/dart/pubspec.yaml', null, 'pubspec.yaml', stylePattern)
198198

199199
p.
200200
The <code>entry_points</code> item

0 commit comments

Comments
 (0)