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

Commit f1566a6

Browse files
2 parents f405f40 + 215733e commit f1566a6

Some content is hidden

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

48 files changed

+604
-277
lines changed

.eslintrc.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
module.exports = {
2+
"globals": {
3+
"describe": true,
4+
"beforeEach": true,
5+
"it": true,
6+
"expect": true
7+
},
8+
"env": {
9+
"node": true
10+
},
11+
"extends": "eslint:recommended",
12+
"rules": {
13+
"indent": [
14+
"error",
15+
2
16+
],
17+
"linebreak-style": [
18+
"error",
19+
"unix"
20+
],
21+
"quotes": [
22+
"error",
23+
"single"
24+
],
25+
"semi": [
26+
"error",
27+
"always"
28+
]
29+
}
30+
};

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5
1+
6

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ dist: trusty
22
sudo: required
33
language: node_js
44
node_js:
5-
- "5"
5+
- "6"
66
os:
77
- linux
88
env:

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Filing issues is helpful but **pull requests** that improve the docs are even be
2121

2222
Learn how to [contribute to Angular.io](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md).
2323

24+
> **IMPORTANT**: Do _NOT_ make changes to cached files under `public/docs/ts/_cache`. Cached files are updated through a separate workflow.
25+
2426
## Development Setup
2527
This site relies heavily on node and npm.
2628

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,10 @@
3636
"cross-spawn": "^4.0.0",
3737
"del": "^2.2.0",
3838
"dgeni": "^0.4.0",
39-
"dgeni-packages": "^0.13.1",
39+
"dgeni-packages": "^0.15.2",
4040
"diff": "^2.1.3",
4141
"fs-extra": "^0.30.0",
4242
"globby": "^4.0.0",
43-
"grunt-sass": "^1.2.0",
4443
"gulp": "^3.5.6",
4544
"gulp-env": "0.4.0",
4645
"gulp-sass": "^2.3.2",
@@ -49,7 +48,7 @@
4948
"gulp-tslint": "^5.0.0",
5049
"gulp-util": "^3.0.6",
5150
"gulp-watch": "^4.3.4",
52-
"harp": "^0.20.3",
51+
"harp": "0.21.0-pre.0",
5352
"html2jade": "^0.8.4",
5453
"indent-string": "^2.1.0",
5554
"jasmine-core": "^2.3.4",

public/docs/_examples/lifecycle-hooks/dart/lib/do_check_component.dart

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// #docregion
2-
import 'dart:convert';
3-
42
import 'package:angular2/core.dart';
53

64
class Hero {
@@ -23,7 +21,7 @@ class Hero {
2321
'.hero {background: LightYellow; padding: 8px; margin-top: 8px}',
2422
'p {background: Yellow; padding: 8px; margin-top: 8px}'
2523
])
26-
class DoCheckComponent implements DoCheck, OnChanges {
24+
class DoCheckComponent implements DoCheck {
2725
@Input()
2826
Hero hero;
2927
@Input()
@@ -72,16 +70,6 @@ class DoCheckComponent implements DoCheck, OnChanges {
7270
}
7371
// #enddocregion ng-do-check
7472

75-
// Copied from OnChangesComponent
76-
ngOnChanges(Map<String, SimpleChange> changes) {
77-
changes.forEach((String propName, SimpleChange change) {
78-
String cur = JSON.encode(change.currentValue);
79-
String prev =
80-
change.isFirstChange() ? "{}" : JSON.encode(change.previousValue);
81-
changeLog.add('$propName: currentValue = $cur, previousValue = $prev');
82-
});
83-
}
84-
8573
void reset() {
8674
changeDetected = true;
8775
changeLog.clear();

public/docs/_examples/quickstart/ts/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
<!-- 1. Load libraries -->
1111
<!-- #docregion libraries -->
12-
<!-- #docregion ie-polyfills -->
12+
<!-- #docregion polyfills -->
1313
<!-- Polyfill(s) for older browsers -->
1414
<script src="node_modules/core-js/client/shim.min.js"></script>
15-
<!-- #enddocregion ie-polyfills -->
15+
<!-- #enddocregion polyfills -->
1616

1717
<script src="node_modules/zone.js/dist/zone.js"></script>
1818
<script src="node_modules/reflect-metadata/Reflect.js"></script>

public/docs/dart/latest/_data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
"cheatsheet": {
4040
"title": "Angular Cheat Sheet",
41-
"intro": "A quick guide to Angular syntax.",
41+
"intro": "A quick guide to Angular syntax. (Content is provisional and may change.)",
4242
"reference": false
4343
},
4444

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
- var base = current.path[4] ? '.' : './guide';
2-
.banner.grid-fluid
3-
.alert.is-important
4-
:marked
5-
This cheat sheet is provisional and subject to change.
62

7-
article(class="l-content-small grid-fluid docs-content")
8-
.cheatsheet
9-
ngio-cheatsheet(src= base + '/cheatsheet.json')
3+
.l-content-small.grid-fluid.docs-content.cheatsheet
4+
ngio-cheatsheet(src= base + '/cheatsheet.json')

public/docs/dart/latest/guide/_data.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
"cheatsheet": {
6161
"title": "Angular Cheat Sheet",
62-
"intro": "A quick guide to Angular syntax.",
62+
"intro": "A quick guide to Angular syntax. (Content is provisional and may change.)",
6363
"nextable": true,
6464
"basics": true
6565
},
@@ -87,6 +87,11 @@
8787
"intro": "Attribute directives attach behavior to elements."
8888
},
8989

90+
"browser-support": {
91+
"title": "Browser support",
92+
"intro": "Browser support and polyfills guide."
93+
},
94+
9095
"component-styles": {
9196
"title": "Component Styles",
9297
"intro": "Learn how to apply CSS styles to components."
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!= partial("../../../_includes/_ts-temp")
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
!= partial("../cheatsheet")
1+
extends ../cheatsheet

public/docs/js/latest/_data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
"cheatsheet": {
4040
"title": "Angular Cheat Sheet",
41-
"intro": "A quick guide to Angular syntax.",
41+
"intro": "A quick guide to Angular syntax. (Content is provisional and may change.)",
4242
"reference": false
4343
},
4444

public/docs/js/latest/cheatsheet.jade

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
- var base = current.path[4] ? '.' : './guide';
22

3-
article(class="l-content-small grid-fluid docs-content")
4-
.cheatsheet
5-
ngio-cheatsheet(src= base + '/cheatsheet.json')
3+
.l-content-small.grid-fluid.docs-content.cheatsheet
4+
ngio-cheatsheet(src= base + '/cheatsheet.json')

public/docs/js/latest/guide/_data.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
"cheatsheet": {
5454
"title": "Angular Cheat Sheet",
55-
"intro": "A quick guide to Angular syntax.",
55+
"intro": "A quick guide to Angular syntax. (Content is provisional and may change.)",
5656
"nextable": true,
5757
"basics": true
5858
},
@@ -74,6 +74,11 @@
7474
"intro": "Attribute directives attach behavior to elements."
7575
},
7676

77+
"browser-support": {
78+
"title": "Browser support",
79+
"intro": "Browser support and polyfills guide."
80+
},
81+
7782
"component-styles": {
7883
"title": "Component Styles",
7984
"intro": "Learn how to apply CSS styles to components."
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!= partial("../../../_includes/_ts-temp")
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
!= partial("../cheatsheet")
1+
extends ../cheatsheet

public/docs/ts/latest/_data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
"cheatsheet": {
4747
"title": "Angular Cheat Sheet",
48-
"intro": "A quick guide to Angular syntax.",
48+
"intro": "A quick guide to Angular syntax. (Content is provisional and may change.)",
4949
"reference": false
5050
},
5151

public/docs/ts/latest/cheatsheet.jade

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
- var base = current.path[4] ? '.' : './guide';
2-
.banner
3-
p.text-body This cheat sheet is provisional and may change. Angular 2 is currently in Release Candidate.
42

5-
article(class="l-content-small grid-fluid docs-content")
6-
.cheatsheet
7-
ngio-cheatsheet(src= base + '/cheatsheet.json')
3+
.l-content-small.grid-fluid.docs-content.cheatsheet
4+
ngio-cheatsheet(src= base + '/cheatsheet.json')

public/docs/ts/latest/guide/_data.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
"cheatsheet": {
6262
"title": "Angular Cheat Sheet",
63-
"intro": "A quick guide to Angular syntax.",
63+
"intro": "A quick guide to Angular syntax. (Content is provisional and may change.)",
6464
"nextable": true,
6565
"basics": true
6666
},
@@ -86,6 +86,11 @@
8686
"intro": "Attribute directives attach behavior to elements."
8787
},
8888

89+
"browser-support": {
90+
"title": "Browser support",
91+
"intro": "Browser support and polyfills guide."
92+
},
93+
8994
"component-styles": {
9095
"title": "Component Styles",
9196
"intro": "Learn how to apply CSS styles to components."

0 commit comments

Comments
 (0)