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

Commit eb60bfe

Browse files
committed
Squashed commit of the following:
commit 17c7e15 Author: Filipe Silva <[email protected]> Date: Mon Nov 14 23:11:37 2016 +0000 chore: update to 2.2.0 (#2797) commit 1e5facf Merge: 5c4cc9a db0fac9 Author: Ward Bell <[email protected]> Date: Mon Nov 14 12:44:51 2016 -0800 Merge pull request #2799 from IdeaBlade/docs-changelog-2.2.0 chore(changelog): update docs changelog for Ng v.2.2.0 commit 5c4cc9a Merge: 43457e9 1afe5dc Author: Ward Bell <[email protected]> Date: Mon Nov 14 12:43:09 2016 -0800 docs(router): Updated usage of observables in router tutorial and developer guide (#2696) Moved route configuration into separate variable for consistency Added async pipe to handle subscriptions for list items commit 43457e9 Merge: a423a5a 2649647 Author: Jesús Rodríguez <[email protected]> Date: Mon Nov 14 21:38:49 2016 +0100 chore: add upgrade/static to API reference (#2755) commit 1afe5dc Author: Brandon Roberts <[email protected]> Date: Sat Oct 29 16:08:54 2016 -0500 docs(router): Updated usage of observables in router tutorial and developer guide Moved route configuration into separate variable for consistency Added async pipe to handle subscriptions for list items commit db0fac9 Author: Ward Bell <[email protected]> Date: Mon Nov 14 10:48:09 2016 -0800 chore(changelog): update docs changelog for Ng v.2.2.0 commit a423a5a Author: ikilled <[email protected]> Date: Mon Nov 14 18:39:46 2016 +0000 clicking on Books & Training sends user to Education (#2701) When user clicks in Books & Training item in footer the website should take them to Education section (anchor) in the middle of the page, not to the top where Development section is. commit d63b1cc Merge: f627706 8508140 Author: Ward Bell <[email protected]> Date: Mon Nov 14 10:35:48 2016 -0800 docs(router): fixed verbiage about router-outlet (#2746) commit f627706 Author: Ward Bell <[email protected]> Date: Mon Nov 14 10:26:13 2016 -0800 docs(cookbook-aot-compiler): improve Ahead-of-Time compilation cookbook (#2798) closes #2790 commit 75464d5 Merge: 78e2584 02f5559 Author: Ward Bell <[email protected]> Date: Mon Nov 14 09:34:36 2016 -0800 Merge pull request #2794 from IdeaBlade/chalin-guide-misc-fix-1113 docs: guide/index misc Jade fixes commit 78e2584 Merge: 182493f 85062c4 Author: Ward Bell <[email protected]> Date: Mon Nov 14 09:33:55 2016 -0800 Merge pull request #2795 from IdeaBlade/chalin-util-js-getExampleName-1114 chore(util.js): getExampleName - support optional .html suffix commit 182493f Merge: 9e9666b 53f5538 Author: Ward Bell <[email protected]> Date: Mon Nov 14 09:28:40 2016 -0800 feat(cb-ts-to-js): add es6 examples (#2606) * feat(cb-ts-to-js): add es6 examples update docshredder to shred .es6 optimized focus gulp task convert imports and metadate sections add DI section add host and query metadata section add intro fix capitalization and grammar * docs(ts-to-js): ward's edits (incomplete) * docs(ts-to-js): add separate template files for some components * docs(cb-ts-to-js): refactor sample code commit 53f5538 Author: Ward Bell <[email protected]> Date: Sun Nov 13 14:09:28 2016 -0800 docs(cb-ts-to-js): refactor sample code commit 9e9666b Author: Patrice Chalin <[email protected]> Date: Mon Nov 14 08:34:10 2016 -0800 docs(template-syntax/dart): updates to match TS (#2751) * docs(template-syntax): refresh _cache * docs(template-syntax/dart): updates to match TS - Propagates TS-side changes: - update #2639 - new two-way binding section, and - fix #2687 - invalid attr syntax - Fixes - #1898 - currency symbols - #2748 - Dart template-syntax e2e is failing - #2749 - deprecated `[className]` * updated _cache file following Kathy's post-review edits * Post Ward's review w/ cache updated - Keep `my-` and `my` prefixes on selectors (for components and directives, respectively). - Drop `my-` from file names. - Drop `My` as component class prefix. commit 5dcffd6 Author: Patrice Chalin <[email protected]> Date: Sun Nov 13 19:37:13 2016 -0800 docs: dart glossary - fix misnamed Jade block commit 6680acc Merge: 14db838 3b03573 Author: Kathy Walrath <[email protected]> Date: Mon Nov 14 08:31:11 2016 -0800 docs(toh): avoid dup header title (#2796) * remove redundant headings * update _cache * misc: make block comment a Jade comment (This prevents the text from appearing in the generated HTML as an HTML comment.) commit 3b03573 Author: Patrice Chalin <[email protected]> Date: Mon Nov 14 05:30:05 2016 -0800 misc: make block comment a Jade comment (This prevents the text from appearing in the generated HTML as an HTML comment.) commit 470426d Author: Patrice Chalin <[email protected]> Date: Mon Nov 14 05:25:36 2016 -0800 update _cache commit c12d75a Author: Patrice Chalin <[email protected]> Date: Mon Nov 14 05:23:35 2016 -0800 remove redundant headings commit 85062c4 Author: Patrice Chalin <[email protected]> Date: Mon Nov 14 04:56:12 2016 -0800 chore(util.js): getExampleName - support optional .html suffix commit 02f5559 Author: Patrice Chalin <[email protected]> Date: Mon Nov 14 04:29:17 2016 -0800 docs: guide/index misc Jade fixes - Eliminate use of deprecated `clear=“all”` in `<br>`. - No need for local `langName`; use global `_Lang` var instead. - Remove duplicate id `learning-path`. commit 14db838 Author: Naomi Black <[email protected]> Date: Sun Nov 13 21:48:52 2016 -0500 news(nov): Some news and a blog post update commit eff32ec Author: Naomi Black <[email protected]> Date: Sun Nov 13 21:48:37 2016 -0500 chore(bios): update some bios for leads commit 3ee36fb Author: koyner <[email protected]> Date: Sun Nov 13 22:59:59 2016 +0100 docs(forms): grammar fix (#2764) commit b11438f Author: Ward Bell <[email protected]> Date: Fri Nov 11 19:44:00 2016 -0800 docs(ts-to-js): add separate template files for some components commit 33b6197 Author: Ward Bell <[email protected]> Date: Thu Nov 3 01:37:55 2016 -0700 docs(ts-to-js): ward's edits (incomplete) commit 12eb19f Author: Filipe Silva <[email protected]> Date: Thu Oct 13 17:59:00 2016 +0100 feat(cb-ts-to-js): add es6 examples update docshredder to shred .es6 optimized focus gulp task convert imports and metadate sections add DI section add host and query metadata section add intro fix capitalization and grammar commit 64a8754 Author: Patrice Chalin <[email protected]> Date: Thu Nov 10 20:01:36 2016 -0800 example(template-syntax): follow style-guide and other updates (#2750) commit 7619cdf Author: Jesús Rodríguez <[email protected]> Date: Thu Nov 10 23:47:30 2016 +0100 chore: ability to open a plunker on a specific file (#2778) commit 0161d9d Author: Filipe Silva <[email protected]> Date: Thu Nov 10 22:45:22 2016 +0000 chore: ignore debug.log file (#2785) This file is generated when running `gulp e2e` and often enough committed by mistake. /cc @Foxandxss commit f92983c Author: Jesús Rodríguez <[email protected]> Date: Thu Nov 10 23:44:51 2016 +0100 docs(ngmodule): fix plunkers (#2786) commit 03db4bb Author: Martin Eckardt <[email protected]> Date: Wed Nov 9 17:43:40 2016 +0100 docs(a1-a2): fix link to Filter/Pipes (#2770) commit 60565a5 Author: Pavol Pitonak <[email protected]> Date: Wed Nov 9 17:42:57 2016 +0100 docs(testing): configureTestModule -> configureTestingModule (#2767) commit ec47197 Author: Catalin Zalog <[email protected]> Date: Wed Nov 9 18:41:56 2016 +0200 docs(style-guide): fix missing *.ts (#2763) commit 234e468 Author: Patrice Chalin <[email protected]> Date: Tue Nov 8 08:21:02 2016 -0800 docs: intra-site links should be relative Contributes to #2772. commit 6b37da7 Author: Patrice Chalin <[email protected]> Date: Tue Nov 8 09:27:10 2016 -0800 docs(forms/dart): remove mention of FORM_DIRECTIVES Fixes #2752 commit c24dd07 Author: Patrice Chalin <[email protected]> Date: Tue Nov 8 14:48:03 2016 -0800 docs(toh-5/dart): use routerLink in dashboard (#2744) * docs(toh-5/dart): use routerLink in dashboard * minor edits to TS jade * remove dart/toh-pt5 from bad-code-excerpt-skip-patterns commit 2808878 Author: Patrice Chalin <[email protected]> Date: Tue Nov 8 07:41:27 2016 -0800 chore(deploy): don't name project in firebase deploy Naming the project would sometimes cause gulp to report `An unexpected error has occurred` with exit code 2. commit 2649647 Author: Jesus Rodriguez <[email protected]> Date: Sat Nov 5 00:37:47 2016 +0100 chore: add upgrade/static to API reference commit 8508140 Merge: 37f93bc b1c2c27 Author: Adrian Irwin <[email protected]> Date: Thu Nov 3 17:27:43 2016 -0700 Merge branch 'router' of https://github.com/adrianirwin/angular.io into router commit 37f93bc Author: Adrian Irwin <[email protected]> Date: Thu Nov 3 17:25:55 2016 -0700 docs(router): fixed verbiage and example of how routed views are related to the router outlet commit b1c2c27 Author: Adrian Irwin <[email protected]> Date: Thu Nov 3 16:57:56 2016 -0700 docs(router): fixed verbiage and example of how routed views are related to the router outlet
1 parent 5fa0b69 commit eb60bfe

File tree

207 files changed

+3900
-2361
lines changed

Some content is hidden

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

207 files changed

+3900
-2361
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public/docs/xref-*.*
2222
_zip-output
2323
www*
2424
npm-debug*.log*
25+
**/debug.log
2526
*.plnkr.html
2627
plnkr.html
2728
*.eplnkr.html

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
- DBUS_SESSION_BUS_ADDRESS=/dev/null
1111
- DISPLAY=:99.0
1212
- CHROME_BIN=chromium-browser
13-
- LATEST_RELEASE=2.1.1
13+
- LATEST_RELEASE=2.2.0
1414
- TASK_FLAGS="--dgeni-log=warn"
1515
matrix:
1616
- TASK=lint

gulpfile.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -247,15 +247,16 @@ function findAndRunE2eTests(filter, outputFile) {
247247
e2eSpecPaths.forEach(function(specPath) {
248248
// get all of the examples under each dir where a pcFilename is found
249249
localExamplePaths = getExamplePaths(specPath, true);
250-
// Filter by language
251-
localExamplePaths = localExamplePaths.filter(function (fn) {
252-
return fn.match('/'+lang+'$') != null;
253-
});
250+
// Filter by example name
254251
if (filter) {
255252
localExamplePaths = localExamplePaths.filter(function (fn) {
256253
return fn.match(filter) != null;
257254
})
258255
}
256+
// Filter by language, also supports variations like js-es6
257+
localExamplePaths = localExamplePaths.filter(function (fn) {
258+
return fn.match('/'+lang+'(?:-[^/]*)?$') != null;
259+
});
259260
localExamplePaths.forEach(function(examplePath) {
260261
examplePaths.push(examplePath);
261262
})
@@ -754,7 +755,7 @@ gulp.task('check-deploy', ['firebase-use-proj-check', 'build-docs'], () => {
754755
}).then(function(shouldDeploy) {
755756
if (shouldDeploy) {
756757
gutil.log('deploying...');
757-
return execPromise(`firebase deploy -p ${WWW}`);
758+
return execPromise('firebase deploy');
758759
} else {
759760
return ['Not deploying'];
760761
}
@@ -1270,7 +1271,7 @@ function apiExamplesWatch(postShredAction) {
12701271
}
12711272

12721273
function devGuideExamplesWatch(shredOptions, postShredAction, focus) {
1273-
var watchPattern = focus ? '**/{' + focus + ',cb-' + focus+ '}/**/*.*' : '**/*.*';
1274+
var watchPattern = focus ? '{' + focus + ',cb-' + focus+ '}/**/*.*' : '**/*.*';
12741275
var includePattern = path.join(shredOptions.examplesDir, watchPattern);
12751276
// removed this version because gulp.watch has the same glob issue that dgeni has.
12761277
// var excludePattern = '!' + path.join(shredOptions.examplesDir, '**/node_modules/**/*.*');

harp.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"picture": "/resources/images/bios/naomi.jpg",
3030
"twitter": "naomitraveller",
3131
"website": "http://google.com/+NaomiBlack",
32-
"bio": "Naomi is Angular's TPM generalist and jack-of-all-trades. She leads Angular Material and AngularDart, and acts as webmaster for angular.io. She's been at Google since 2006, as a technical program manager on projects ranging from Accessibility to Google Transit. She fights daleks in her spare time.",
32+
"bio": "Naomi is Angular's TPM generalist and jack-of-all-trades. She leads Angular's global programs (including localization), supports Angular's internal Google users, and acts as webmaster for angular.io and angular.cn. She's been at Google since 2006, as a technical program manager on projects ranging from Accessibility to Google Transit. She fights daleks in her spare time.",
3333
"type": "Lead"
3434
},
3535

@@ -38,7 +38,7 @@
3838
"picture": "/resources/images/bios/brad-green.jpg",
3939
"twitter": "bradlygreen",
4040
"website": "https://plus.google.com/+BradGreen",
41-
"bio": "Brad Green works at Google as an engineering director. Brad manages the Google Sales Platform suite of projects as well as the AngularJS framework. Prior to Google, Brad worked on the early mobile web at AvantGo, founded and sold startups, and spent a few hard years toiling as a caterer. Brad's first job out of school was as lackey to Steve Jobs at NeXT Computer writing demo software and designing his slide presentations. Brad lives in Mountain View, CA with his wife and two children.",
41+
"bio": "Brad Green works at Google as an engineering director. Brad manages the Google Sales Platform suite of projects as well as the AngularJS framework. Prior to Google, Brad worked on the early mobile web at AvantGo, founded and sold startups, and spent a few hard years toiling as a caterer. Brad's first job out of school was as lackey to Steve Jobs at NeXT Computer writing demo software and designing his slide presentations. Brad enjoys throwing dinner parties with his wife Heather and putting on plays with his children.",
4242
"type": "Lead"
4343
},
4444

@@ -47,7 +47,7 @@
4747
"picture": "/resources/images/bios/juleskremer.jpg",
4848
"twitter": "jules_kremer",
4949
"website": "https://plus.google.com/+JulesKremer",
50-
"bio": "Jules is a TPM on the Angular team. When not working with developers, Jules is often bending into pretzel-like shapes, climbing mountains or drinking really awesome beer.",
50+
"bio": "Jules is Head of Angular Developer Relations at Google. When not working with developers, Jules is often bending into pretzel-like shapes, climbing mountains or drinking really awesome beer.",
5151
"type": "Lead"
5252
},
5353

public/_includes/_footer.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ div(class="main-footer" data-swiftype-index="false")
2020
// TODO: (ericjim) make a libraries page to showcase all angular libraries
2121
//li <a href="/libraries.html">Libraries</a>
2222
li <a href="/about/">About</a>
23-
li <a href="/resources/">Books & Training</a>
23+
li <a href="/resources/#Education">Books & Training</a>
2424
li <a href="/resources/">Tools & Libraries</a>
2525
li <a href="/resources/">Community</a>
2626
li <a href="/presskit.html">Press Kit</a>

public/docs/_examples/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ wallaby.js
1111

1212
_test-output
1313
**/ts/**/*.js
14+
**/js-es6*/**/*.js
1415
**/ts-snippets/**/*.js
1516
*.d.ts
1617

public/docs/_examples/_boilerplate/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"build:webpack": "rimraf dist && webpack --config config/webpack.prod.js --bail",
1919
"build:cli": "ng build",
2020
"build:aot": "ngc -p tsconfig-aot.json && rollup -c rollup-config.js",
21+
"build:babel": "babel app -d app --extensions \".es6\" --source-maps",
2122
"copy-dist-files": "node ./copy-dist-files.js",
2223
"i18n": "ng-xi18n"
2324
},

public/docs/_examples/cb-ts-to-js/e2e-spec.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'use strict'; // necessary for es6 output in node
1+
'use strict'; // necessary for es6 output in node
22

33
import { browser, element, by } from 'protractor';
44

@@ -9,7 +9,7 @@ describe('TypeScript to Javascript tests', function () {
99
});
1010

1111
it('should display the basic component example', function () {
12-
testTag('hero-view', 'Hero: Windstorm');
12+
testTag('hero-view', 'Hero Detail: Windstorm');
1313
});
1414

1515
it('should display the component example with lifecycle methods', function () {
@@ -36,7 +36,7 @@ describe('TypeScript to Javascript tests', function () {
3636

3737
it('should support component with inputs and outputs', function () {
3838
let app = element(by.css('hero-io'));
39-
let confirmComponent = app.element(by.css('my-confirm'));
39+
let confirmComponent = app.element(by.css('app-confirm'));
4040

4141
confirmComponent.element(by.buttonText('OK')).click();
4242
expect(app.element(by.cssContainingText('span', 'OK clicked')).isPresent()).toBe(true);
@@ -46,11 +46,11 @@ describe('TypeScript to Javascript tests', function () {
4646
});
4747

4848
it('should support host bindings and host listeners', function() {
49-
let app = element(by.css('heroes-bindings'));
49+
let app = element(by.css('hero-host'));
5050
let h1 = app.element(by.css('h1'));
5151

5252
expect(app.getAttribute('class')).toBe('heading');
53-
expect(app.getAttribute('title')).toBe('Tooltip content');
53+
expect(app.getAttribute('title')).toContain('Tooltip');
5454

5555
h1.click();
5656
expect(h1.getAttribute('class')).toBe('active');
@@ -61,12 +61,12 @@ describe('TypeScript to Javascript tests', function () {
6161
});
6262

6363
it('should support content and view queries', function() {
64-
let app = element(by.css('heroes-queries'));
65-
let windstorm = app.element(by.css('a-hero:first-child'));
64+
let app = element(by.css('hero-queries'));
65+
let windstorm = app.element(by.css('view-child:first-child'));
6666

67-
app.element(by.buttonText('Activate')).click();
67+
app.element(by.css('button')).click();
6868
expect(windstorm.element(by.css('h2')).getAttribute('class')).toBe('active');
69-
expect(windstorm.element(by.css('active-label')).getText()).toBe('Active');
69+
expect(windstorm.element(by.css('content-child')).getText()).toBe('Active');
7070
});
7171

7272
function testTag(selector: string, expectedText: string) {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"presets": [
3+
"es2015",
4+
"angular2"
5+
]
6+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
moduleId: module.id,
5+
selector: 'my-app',
6+
templateUrl: 'app.component.html',
7+
styles: [
8+
// See hero-di-inject-additional.component
9+
'hero-host, hero-host-meta { border: 1px dashed black; display: block; padding: 4px;}',
10+
'.heading {font-style: italic}'
11+
]
12+
})
13+
export class AppComponent {
14+
title = 'ES6 JavaScript with Decorators';
15+
}

0 commit comments

Comments
 (0)