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

Commit dcf96d1

Browse files
committed
Squashed commit of the following:
commit 7c8938a Author: Patrice Chalin <[email protected]> Date: Fri Nov 18 07:53:41 2016 -0800 example(pipes): Dart e2e fix (#2825) Match TS example and only bootstrap AppComponent. commit 1c2d14a Author: Patrice Chalin <[email protected]> Date: Thu Nov 17 16:53:28 2016 -0800 docs(guide & api): feedback/issue links for Dart should refer to Dart repos (#2821) * docs(guide/index): feedback link to Dart repo for Dart - Also added links to chapters mentioned in table. - Other minor copyedits. * docs(api): issue links should refer to Dart repo * post-review updates * add link to Advance and Guide chapters * ensure that we can determine which language is active commit e59cd9a Author: Eric Jimenez <[email protected]> Date: Thu Nov 17 18:02:32 2016 -0500 chore: remove deprecated `clear=` and use clear layout helpers (#2822) * define clear layout helpers * replace deprecated clear= with helper commit bde8fe1 Author: Eric Jimenez <[email protected]> Date: Thu Nov 17 17:54:42 2016 -0500 remove grid fluid from dart api list (#2823) commit f993315 Author: Patrice Chalin <[email protected]> Date: Thu Nov 17 14:10:28 2016 -0800 chore(dart): complete the renaming of "Angular 2" to "Angular" (#2820) Contributes to #2407 - Dropped the “2” in “Angular 2” and “angular2_*” where appropriate. - Did a partial sync of `_cache/guide/pipes.jade` - In quickstart, changed `Try changing the message to "Hello Angular 2!”` to `Try changing the message to "Hello Again Angular!”`. commit d853a29 Author: Patrice Chalin <[email protected]> Date: Thu Nov 17 13:47:51 2016 -0800 examples(dart): demote some packages to dev_dependencies (#2818) Fixes #2777 commit 7febba6 Author: Kenny John Jacob <[email protected]> Date: Fri Nov 18 02:24:55 2016 +0530 docs(router): fix missing anchor id (#2817) The link *Importing from the router library* (https://angular.io/docs/ts/latest/guide/router.html#import) does not work. I supposed that this was the corresponding section to be linked to. commit 2a3dbe5 Author: Eric Jimenez <[email protected]> Date: Thu Nov 17 12:37:14 2016 -0500 replace clearfix with a wrapping flexbox (#2819) commit 061e50f Author: Patrice Chalin <[email protected]> Date: Wed Nov 16 10:02:31 2016 -0800 docs: adjust page heading levels (#2813) * docs: adjust page heading levels Only the page TOC should be at heading level 1. All other headings should start at level 2. This commit also removes duplicate headings, in continuation of #2796. (This fix is necessary to support an auto-TOC feature.) commit 31e0101 Author: Filipe Silva <[email protected]> Date: Wed Nov 16 17:51:06 2016 +0000 fix(live-example): correctly match example name (#2815) Currently, when visiting a page with a relative link e.g. https://angular.io/docs/ts/latest/guide/testing.html#!#top, `NgIoUtil.getExampleName` fails to match the example name. This results on `live-example` directives on that page missing the example name in the link: instead of linking to https://angular.io/resources/live-examples/testing/ts/plnkr.html it will link to https://angular.io/resources/live-examples//ts/plnkr.html (notice the missing `testing` and the double slashes). commit e0aecb3 Author: Patrice Chalin <[email protected]> Date: Tue Nov 15 15:38:02 2016 -0800 docs(struct-directives): update Dart cache (#2806) Only minor prose edits in this PR. No net change in the generated HTML for the TS side. commit 0dfda08 Author: Patrice Chalin <[email protected]> Date: Tue Nov 15 15:36:34 2016 -0800 docs: in links use href=foo#bar not foo#!#bar (#2807) commit 64bce18 Author: Patrice Chalin <[email protected]> Date: Tue Nov 15 14:58:56 2016 -0800 e2e(dependency-injection): fix for Dart and simplification for TS Fixes #2493 No need to dual boot `AppComponent` and `ProvidersComponent` only to ensure that we could demo optional injection; instead just inject null for the `@Optional` constructor parameter type. No prose is affected by these changes. commit 4a4144e Author: Patrice Chalin <[email protected]> Date: Tue Nov 15 14:55:33 2016 -0800 docs(tutorial): update Dart cache for toh intro (#2805) commit f70ba97 Author: Patrice Chalin <[email protected]> Date: Tue Nov 15 08:39:03 2016 -0800 example(architecture/dart): drop currency pipe workaround (#2804) Fixes #1898
1 parent ebb4297 commit dcf96d1

File tree

102 files changed

+334
-313
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+334
-313
lines changed

public/_includes/_util-fns.jade

+3
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,15 @@
3737

3838
//- Location of sample code
3939
- var _liveLink = 'live link';
40+
- var _ngRepoURL = 'https://github.com/angular/angular';
41+
- var _ngDocRepoURL = 'https://github.com/angular/angular.io';
4042

4143
//- NgModule related
4244
- var _AppModuleVsAppComp = 'AppModule'
4345
- var _appModuleTsVsAppCompTs = 'app/app.module.ts'
4446
- var _appModuleTsVsMainTs = 'app/app.module.ts'
4547
- var _bootstrapModule = 'bootstrapModule'
48+
- var _declsVsDirectives = 'declarations'
4649
- var _moduleVsComp = 'module'
4750
- var _moduleVsRootComp = 'module'
4851
- var _platformBrowserDynamicVsBootStrap = 'platformBrowserDynamic'

public/docs/_examples/architecture/dart/lib/sales_tax_component.dart

+1-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ import 'tax_rate_service.dart';
1111
1212
<div *ngIf="amountBox.value != ''">
1313
The sales tax is
14-
{{ getTax(amountBox.value) | currency:'USD':false:'1.2-2' }}
15-
<!-- would like to write currency:'USD':true:'1.2-2' but
16-
currency as symbol is not currently supported; see
17-
https://github.com/dart-lang/intl/issues/59 -->
14+
{{ getTax(amountBox.value) | currency:'USD':true:'1.2-2' }}
1815
</div>
1916
''',
2017
providers: const [SalesTaxService, TaxRateService])

public/docs/_examples/architecture/dart/pubspec.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ environment:
66
sdk: '>=1.19.0 <2.0.0'
77
dependencies:
88
angular2: ^2.0.0
9+
dev_dependencies:
910
browser: ^0.10.0
1011
dart_to_js_script_rewriter: ^1.0.1
1112
transformers:

public/docs/_examples/architecture/e2e-spec.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ function salesTaxTests() {
7171
it('shows sales tax', async function () {
7272
let page = getPageElts();
7373
page.salesTaxAmountInput.sendKeys('10', protractor.Key.ENTER);
74-
// Note: due to Dart bug USD is shown instead of $
75-
let re = /The sales tax is (\$|USD)1.00/;
76-
expect(page.salesTaxDetail.getText()).toMatch(re);
74+
expect(page.salesTaxDetail.getText()).toEqual('The sales tax is $1.00');
7775
});
7876
}
7977

public/docs/_examples/attribute-directives/dart/pubspec.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ environment:
66
sdk: '>=1.19.0 <2.0.0'
77
dependencies:
88
angular2: ^2.0.0
9+
dev_dependencies:
910
browser: ^0.10.0
1011
dart_to_js_script_rewriter: ^1.0.1
1112
transformers:

public/docs/_examples/component-styles/dart/pubspec.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ environment:
66
sdk: '>=1.19.0 <2.0.0'
77
dependencies:
88
angular2: ^2.0.0
9+
dev_dependencies:
910
browser: ^0.10.0
1011
dart_to_js_script_rewriter: ^1.0.1
1112
transformers:

public/docs/_examples/dependency-injection/dart/lib/app_component.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ import 'providers_component.dart';
2222
<button (click)="nextUser()">Next User</button>
2323
<p>
2424
<my-heroes id="authorized" *ngIf="isAuthorized"></my-heroes>
25-
<my-heroes id="unauthorized" *ngIf="!isAuthorized"></my-heroes>''',
25+
<my-heroes id="unauthorized" *ngIf="!isAuthorized"></my-heroes>
26+
<my-providers></my-providers>
27+
''',
2628
directives: const [
2729
CarComponent,
2830
HeroesComponent,

public/docs/_examples/dependency-injection/dart/lib/providers_component.dart

+5-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,11 @@ class Provider9Component implements OnInit {
224224

225225
// Sample providers 1 to 7 illustrate a required logger dependency.
226226
// Optional logger, can be null.
227-
@Component(selector: 'provider-10', template: '{{log}}')
227+
@Component(
228+
selector: 'provider-10',
229+
template: '{{log}}',
230+
providers: const [const Provider(Logger, useValue: null)]
231+
)
228232
class Provider10Component implements OnInit {
229233
final Logger _logger;
230234
String log;

public/docs/_examples/dependency-injection/dart/pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ environment:
66
sdk: '>=1.19.0 <2.0.0'
77
dependencies:
88
angular2: ^2.0.0
9+
dev_dependencies:
910
browser: ^0.10.0
1011
dart_to_js_script_rewriter: ^1.0.1
12+
test: any
1113
transformers:
1214
- angular2:
1315
platform_directives:
@@ -16,5 +18,3 @@ transformers:
1618
- 'package:angular2/common.dart#COMMON_PIPES'
1719
entry_points: web/main.dart
1820
- dart_to_js_script_rewriter
19-
dev_dependencies:
20-
test: any

public/docs/_examples/dependency-injection/dart/web/index.html

-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@
1010
</head>
1111
<body>
1212
<my-app>Loading...</my-app>
13-
<my-providers>Loading my-providers ...</my-providers>
1413
</body>
1514
</html>
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import 'package:angular2/platform/browser.dart';
22

33
import 'package:dependency_injection/app_component.dart';
4-
import 'package:dependency_injection/providers_component.dart';
54

65
void main() {
76
//#docregion bootstrap
87
bootstrap(AppComponent);
98
//#enddocregion bootstrap
10-
bootstrap(ProvidersComponent);
119
}

public/docs/_examples/dependency-injection/ts/app/app.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { UserService } from './user.service';
2222
<p>
2323
<my-heroes id="authorized" *ngIf="isAuthorized"></my-heroes>
2424
<my-heroes id="unauthorized" *ngIf="!isAuthorized"></my-heroes>
25+
<my-providers></my-providers>
2526
`,
2627
providers: [Logger]
2728
})

public/docs/_examples/dependency-injection/ts/app/app.module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import {
5353
{ provide: APP_CONFIG, useValue: HERO_DI_CONFIG }
5454
],
5555
// #enddocregion ngmodule-providers
56-
bootstrap: [ AppComponent, ProvidersComponent ]
56+
bootstrap: [ AppComponent ]
5757
})
5858
export class AppModule { }
5959
// #enddocregion ngmodule

public/docs/_examples/dependency-injection/ts/app/providers.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ let some_message = 'Hello from the injected logger';
229229

230230
@Component({
231231
selector: 'provider-10',
232-
template: template
232+
template: template,
233+
providers: [{ provide: Logger, useValue: null }]
233234
})
234235
export class Provider10Component implements OnInit {
235236
log: string;

public/docs/_examples/dependency-injection/ts/index.html

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
<body>
2424
<my-app>Loading my-app ...</my-app>
25-
<my-providers>Loading my-providers ...</my-providers>
2625
</body>
2726

2827
</html>

public/docs/_examples/displaying-data/dart/pubspec.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ environment:
66
sdk: '>=1.19.0 <2.0.0'
77
dependencies:
88
angular2: ^2.0.0
9+
dev_dependencies:
910
browser: ^0.10.0
1011
dart_to_js_script_rewriter: ^1.0.1
1112
transformers:

public/docs/_examples/forms/dart/pubspec.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ environment:
66
sdk: '>=1.19.0 <2.0.0'
77
dependencies:
88
angular2: ^2.0.0
9+
dev_dependencies:
910
browser: ^0.10.0
1011
dart_to_js_script_rewriter: ^1.0.1
1112
transformers:

public/docs/_examples/hierarchical-dependency-injection/dart/pubspec.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ environment:
66
sdk: '>=1.19.0 <2.0.0'
77
dependencies:
88
angular2: ^2.0.0
9+
dev_dependencies:
910
browser: ^0.10.0
1011
dart_to_js_script_rewriter: ^1.0.1
1112
transformers:

public/docs/_examples/lifecycle-hooks/dart/pubspec.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ environment:
66
sdk: '>=1.19.0 <2.0.0'
77
dependencies:
88
angular2: ^2.0.0
9+
dev_dependencies:
910
browser: ^0.10.0
1011
dart_to_js_script_rewriter: ^1.0.1
1112
transformers:

public/docs/_examples/lifecycle-hooks/dart/web/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<html>
44

55
<head>
6-
<title>Angular 2 Lifecycle Hooks</title>
6+
<title>Angular Lifecycle Hooks</title>
77
<meta charset="UTF-8">
88
<meta name="viewport" content="width=device-width, initial-scale=1">
99
<link rel="stylesheet" href="styles.css">

public/docs/_examples/pipes/dart/pubspec.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ environment:
66
sdk: '>=1.19.0 <2.0.0'
77
dependencies:
88
angular2: ^2.0.0
9+
dev_dependencies:
910
browser: ^0.10.0
1011
dart_to_js_script_rewriter: ^1.0.1
1112
transformers:
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import 'package:angular2/platform/browser.dart';
22

33
import 'package:pipe_examples/app_component.dart';
4-
import 'package:pipe_examples/hero_birthday1_component.dart';
54

6-
main() {
5+
void main() {
76
bootstrap(AppComponent);
8-
bootstrap(HeroBirthdayComponent);
97
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# #docregion
2-
name: angular2_quickstart
2+
name: angular_quickstart
33
description: QuickStart
44
version: 0.0.1
55
environment:

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// #docregion
22
import 'package:angular2/platform/browser.dart';
33

4-
import 'package:angular2_quickstart/app_component.dart';
4+
import 'package:angular_quickstart/app_component.dart';
55

66
void main() {
77
bootstrap(AppComponent);

public/docs/_examples/server-communication/dart/pubspec.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ environment:
66
sdk: '>=1.19.0 <2.0.0'
77
dependencies:
88
angular2: ^2.0.0
9-
browser: ^0.10.0
10-
dart_to_js_script_rewriter: ^1.0.1
119
http: ^0.11.0
1210
jsonpadding: ^0.1.0
1311
stream_transformers: ^0.3.0
1412
http_in_memory_web_api: ^0.2.0
13+
dev_dependencies:
14+
browser: ^0.10.0
15+
dart_to_js_script_rewriter: ^1.0.1
1516
# #docregion transformers
1617
transformers:
1718
- angular2:

public/docs/_examples/structural-directives/dart/pubspec.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ environment:
66
sdk: '>=1.19.0 <2.0.0'
77
dependencies:
88
angular2: ^2.0.0
9+
dev_dependencies:
910
browser: ^0.10.0
1011
dart_to_js_script_rewriter: ^1.0.1
1112
transformers:

public/docs/_examples/template-syntax/dart/pubspec.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ environment:
66
sdk: '>=1.19.0 <2.0.0'
77
dependencies:
88
angular2: ^2.0.0
9+
dev_dependencies:
910
browser: ^0.10.0
1011
dart_to_js_script_rewriter: ^1.0.1
1112
transformers:

public/docs/_examples/toh-1/dart/pubspec.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# #docregion
2-
name: angular2_tour_of_heroes
2+
name: angular_tour_of_heroes
33
description: Tour of Heroes
44
version: 0.0.1
55
environment:
66
sdk: '>=1.19.0 <2.0.0'
77
dependencies:
88
angular2: ^2.0.0
9+
dev_dependencies:
910
browser: ^0.10.0
1011
dart_to_js_script_rewriter: ^1.0.1
1112
transformers:

public/docs/_examples/toh-1/dart/web/main.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// #docregion pt1
22
import 'package:angular2/platform/browser.dart';
33

4-
import 'package:angular2_tour_of_heroes/app_component.dart';
4+
import 'package:angular_tour_of_heroes/app_component.dart';
55

66
void main() {
77
bootstrap(AppComponent);

public/docs/_examples/toh-2/dart/pubspec.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# #docregion
2-
name: angular2_tour_of_heroes
2+
name: angular_tour_of_heroes
33
description: Tour of Heroes
44
version: 0.0.1
55
environment:
66
sdk: '>=1.19.0 <2.0.0'
77
dependencies:
88
angular2: ^2.0.0
9+
dev_dependencies:
910
browser: ^0.10.0
1011
dart_to_js_script_rewriter: ^1.0.1
1112
transformers:

public/docs/_examples/toh-2/dart/web/main.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'package:angular2/platform/browser.dart';
22

3-
import 'package:angular2_tour_of_heroes/app_component.dart';
3+
import 'package:angular_tour_of_heroes/app_component.dart';
44

55
void main() {
66
bootstrap(AppComponent);

public/docs/_examples/toh-3/dart/pubspec.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# #docregion
2-
name: angular2_tour_of_heroes
2+
name: angular_tour_of_heroes
33
description: Tour of Heroes
44
version: 0.0.1
55
environment:
66
sdk: '>=1.19.0 <2.0.0'
77
dependencies:
88
angular2: ^2.0.0
9+
dev_dependencies:
910
browser: ^0.10.0
1011
dart_to_js_script_rewriter: ^1.0.1
1112
transformers:

public/docs/_examples/toh-3/dart/web/main.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// #docregion pt1
22
import 'package:angular2/platform/browser.dart';
33

4-
import 'package:angular2_tour_of_heroes/app_component.dart';
4+
import 'package:angular_tour_of_heroes/app_component.dart';
55

66
main() {
77
bootstrap(AppComponent);

public/docs/_examples/toh-4/dart/pubspec.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# #docregion
2-
name: angular2_tour_of_heroes
2+
name: angular_tour_of_heroes
33
description: Tour of Heroes
44
version: 0.0.1
55
environment:
66
sdk: '>=1.19.0 <2.0.0'
77
dependencies:
88
angular2: ^2.0.0
9+
dev_dependencies:
910
browser: ^0.10.0
1011
dart_to_js_script_rewriter: ^1.0.1
1112
transformers:

public/docs/_examples/toh-4/dart/web/main.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'package:angular2/platform/browser.dart';
22

3-
import 'package:angular2_tour_of_heroes/app_component.dart';
3+
import 'package:angular_tour_of_heroes/app_component.dart';
44

55
void main() {
66
bootstrap(AppComponent);

public/docs/_examples/toh-4/dart/web/main_1.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'package:angular2/platform/browser.dart';
22

3-
import 'package:angular2_tour_of_heroes/app_component_1.dart';
3+
import 'package:angular_tour_of_heroes/app_component_1.dart';
44

55
void main() {
66
bootstrap(AppComponent);

public/docs/_examples/toh-5/dart/pubspec.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# #docregion
2-
name: angular2_tour_of_heroes
2+
name: angular_tour_of_heroes
33
description: Tour of Heroes
44
version: 0.0.1
55
environment:
66
sdk: '>=1.19.0 <2.0.0'
77
dependencies:
88
angular2: ^2.0.0
9+
dev_dependencies:
910
browser: ^0.10.0
1011
dart_to_js_script_rewriter: ^1.0.1
1112
transformers:

public/docs/_examples/toh-5/dart/web/main.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'package:angular2/platform/browser.dart';
22

3-
import 'package:angular2_tour_of_heroes/app_component.dart';
3+
import 'package:angular_tour_of_heroes/app_component.dart';
44

55
void main() {
66
bootstrap(AppComponent);

0 commit comments

Comments
 (0)