8000 docs(dart/quickstart): merge 2 examples into 1 by kwalrath · Pull Request #1031 · angular/angular.io · GitHub
[go: up one dir, main page]

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

docs(dart/quickstart): merge 2 examples into 1 #1031

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
docs(dart/quickstart): merge 2 examples into 1
  • Loading branch information
kwalrath committed Mar 31, 2016
commit 87e32cd80dc1cc8576d6bfaf71e484953143475c
12 changes: 0 additions & 12 deletions public/docs/_examples/quickstart/dart/ex1/pubspec.yaml
< 8000 button data-disable-with="Loading…" aria-describedby="hidden-diff-reason-d74307b511fdf0f239405f697aabf2e64d2e9a32786f08a724ab7f87205bc39d" type="button" data-view-component="true" class="load-diff-button no-underline js-diff-load Button--link Button--medium Button f4">
Load diff

This file was deleted.

16 changes: 0 additions & 16 deletions public/docs/_examples/quickstart/dart/ex2/web/index.html

This file was deleted.

10 changes: 0 additions & 10 deletions public/docs/_examples/quickstart/dart/ex2/web/main.dart

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# #docplaster
# #docregion
# #docregion no-rewriter
name: angular2_getting_started
description: QuickStart
version: 0.0.1
Expand All @@ -7,8 +9,11 @@ environment:
dependencies:
angular2: 2.0.0-beta.12
browser: ^0.10.0
# #enddocregion no-rewriter
dart_to_js_script_rewriter: ^1.0.1
# #docregion no-rewriter
transformers:
- angular2:
entry_points: web/main.dart
# #enddocregion no-rewriter
- dart_to_js_script_rewriter
< 8000 div class="js-file-content Details-content--hidden position-relative" data-hydro-view="{"event_type":"pull_request.select_diff_range","payload":{"actor_id":null,"pull_request_id":64865990,"repository_id":31985425,"diff_type":"UNIFIED","whitespace_ignored":false,"originating_url":"https://github.com/angular/angular.io/pull/1031/commits/87e32cd80dc1cc8576d6bfaf71e484953143475c","user_id":null}}" data-hydro-view-hmac="0fbf3b29950cb7fd3ff40b6af6d238ef5118ad289f89f2f6b5e4d337d09465ff">
File renamed without changes.
10 changes: 5 additions & 5 deletions public/docs/dart/latest/quickstart.jade
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ p.
Angular 2 is still changing, so provide an exact version:
<b>2.0.0-beta.12</b>.

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

p.
In the same directory, create a <code>web</code> directory, and then
Expand Down Expand Up @@ -71,7 +71,7 @@ p.
p.
Paste the following code into <code>web/main.dart</code>:

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

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

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

:marked
The `<my-app>` tag in the `<body>` is
Expand Down Expand Up @@ -170,7 +170,7 @@ p.
in both the `dependencies` and `transformers` sections.

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

p.
Then compile your Dart code to JavaScript,
Expand All @@ -194,7 +194,7 @@ p.
configure the Angular transformer:

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

p.
The <code>entry_points</code> item
Expand Down
0