diff --git a/gulpfile.js b/gulpfile.js
index 4766afc558..82162b7610 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -67,7 +67,16 @@ var _excludeMatchers = _excludePatterns.map(function(excludePattern){
return new Minimatch(excludePattern)
});
-var _exampleBoilerplateFiles = ['package.json', 'tsconfig.json', 'typings.json', 'karma.conf.js', 'karma-test-shim.js' ];
+var _exampleBoilerplateFiles = [
+ 'karma.conf.js',
+ 'karma-test-shim.js',
+ 'package.json',
+ 'styles.css',
+ 'tsconfig.json',
+ 'typings.json'
+ ];
+
+var _exampleDartWebBoilerPlateFiles = ['styles.css'];
// --filter may be passed in to filter/select _example app subdir names
// i.e. gulp run-e2e-tests --filter=foo ; would select all example apps with
@@ -241,24 +250,35 @@ gulp.task('add-example-boilerplate', function() {
fsUtils.addSymlink(realPath, linkPath);
});
- copyExampleBoilerplate();
+ return copyExampleBoilerplate();
});
// copies boilerplate files to locations
// where an example app is found
+// also copies certain web files (e.g., styles.css) to ~/_examples/**/dart/**/web
// also copies protractor.config.js file
function copyExampleBoilerplate() {
var sourceFiles = _exampleBoilerplateFiles.map(function(fn) {
return path.join(EXAMPLES_PATH, fn);
});
var examplePaths = getExamplePaths(EXAMPLES_PATH);
- // copies protractor.config.js from _examples dir to each subdir that
- // contains a e2e-spec file.
- return copyFiles(sourceFiles, examplePaths).then(function() {
- var sourceFiles = [ path.join(EXAMPLES_PATH, 'protractor.config.js') ];
- var e2eSpecPaths = getE2eSpecPaths(EXAMPLES_PATH);
- return copyFiles(sourceFiles, e2eSpecPaths);
+
+ var dartWebSourceFiles = _exampleDartWebBoilerPlateFiles.map(function(fn){
+ return path.join(EXAMPLES_PATH, fn);
});
+ var dartExampleWebPaths = getDartExampleWebPaths(EXAMPLES_PATH);
+
+ return copyFiles(sourceFiles, examplePaths)
+ .then(function() {
+ return copyFiles(dartWebSourceFiles, dartExampleWebPaths);
+ })
+ // copy protractor.config.js from _examples dir to each subdir that
+ // contains a e2e-spec file.
+ .then(function() {
+ var sourceFiles = [ path.join(EXAMPLES_PATH, 'protractor.config.js') ];
+ var e2eSpecPaths = getE2eSpecPaths(EXAMPLES_PATH);
+ return copyFiles(sourceFiles, e2eSpecPaths);
+ });
}
gulp.task('remove-example-boilerplate', function() {
@@ -273,10 +293,16 @@ gulp.task('remove-example-boilerplate', function() {
});
var examplePaths = getExamplePaths(EXAMPLES_PATH);
- return deleteFiles(_exampleBoilerplateFiles, examplePaths).then(function() {
- var e2eSpecPaths = getE2eSpecPaths(EXAMPLES_PATH);
- return deleteFiles(['protractor.config.js'], e2eSpecPaths);
- })
+ var dartExampleWebPaths = getDartExampleWebPaths(EXAMPLES_PATH);
+
+ return deleteFiles(_exampleBoilerplateFiles, examplePaths)
+ .then(function() {
+ return deleteFiles(_exampleDartWebBoilerPlateFiles, dartExampleWebPaths);
+ })
+ .then(function() {
+ var e2eSpecPaths = getE2eSpecPaths(EXAMPLES_PATH);
+ return deleteFiles(['protractor.config.js'], e2eSpecPaths);
+ })
});
gulp.task('serve-and-sync', ['build-docs'], function (cb) {
@@ -300,7 +326,9 @@ gulp.task('build-and-serve', ['build-docs'], function (cb) {
watchAndSync({localFiles: true}, cb);
});
-gulp.task('build-docs', ['build-devguide-docs', 'build-api-docs', 'build-plunkers', '_zip-examples']);
+gulp.task('build-docs', ['build-devguide-docs', 'build-api-docs', 'build-plunkers']);
+// Stop zipping examples Feb 28, 2016
+//gulp.task('build-docs', ['build-devguide-docs', 'build-api-docs', 'build-plunkers', '_zip-examples']);
gulp.task('build-api-docs', ['build-js-api-docs', 'build-ts-api-docs', 'build-dart-cheatsheet']);
@@ -317,7 +345,10 @@ gulp.task('build-js-api-docs', ['_shred-api-examples'], function() {
});
gulp.task('build-plunkers', function() {
- return plunkerBuilder.buildPlunkers(EXAMPLES_PATH, LIVE_EXAMPLES_PATH, { errFn: gutil.log });
+ return copyExampleBoilerplate()
+ .then(function() {
+ return plunkerBuilder.buildPlunkers(EXAMPLES_PATH, LIVE_EXAMPLES_PATH, { errFn: gutil.log });
+ });
});
gulp.task('build-dart-cheatsheet', [], function() {
@@ -557,6 +588,11 @@ function getExamplePaths(basePath, includeBase) {
return getPaths(basePath, "example-config.json", includeBase)
}
+function getDartExampleWebPaths(basePath) {
+ var paths = globby.sync([path.join(basePath,"**/dart/**/web")])
+ return paths;
+}
+
function getPaths(basePath, filename, includeBase) {
var filenames = getFilenames(basePath, filename, includeBase);
var paths = filenames.map(function(fileName) {
diff --git a/public/docs/_examples/.gitignore b/public/docs/_examples/.gitignore
index d9583fccca..7a15251d4f 100644
--- a/public/docs/_examples/.gitignore
+++ b/public/docs/_examples/.gitignore
@@ -1,3 +1,4 @@
+styles.css
typings
typings.json
*.js.map
diff --git a/public/docs/_examples/architecture/dart/web/index.html b/public/docs/_examples/architecture/dart/web/index.html
index c3d91bf64d..17a00ffbed 100644
--- a/public/docs/_examples/architecture/dart/web/index.html
+++ b/public/docs/_examples/architecture/dart/web/index.html
@@ -2,6 +2,7 @@
Intro to Angular 2
+
diff --git a/public/docs/_examples/architecture/ts/index.html b/public/docs/_examples/architecture/ts/index.html
index da2aef3fea..388031aa10 100644
--- a/public/docs/_examples/architecture/ts/index.html
+++ b/public/docs/_examples/architecture/ts/index.html
@@ -3,6 +3,7 @@
Intro to Angular 2
+
diff --git a/public/docs/_examples/attribute-directives/dart/web/index.html b/public/docs/_examples/attribute-directives/dart/web/index.html
index e18cdf965b..ad852ad9eb 100644
--- a/public/docs/_examples/attribute-directives/dart/web/index.html
+++ b/public/docs/_examples/attribute-directives/dart/web/index.html
@@ -3,6 +3,7 @@
Attribute Directives
+
diff --git a/public/docs/_examples/attribute-directives/ts/index.html b/public/docs/_examples/attribute-directives/ts/index.html
index 9e071b3943..97a38048b8 100644
--- a/public/docs/_examples/attribute-directives/ts/index.html
+++ b/public/docs/_examples/attribute-directives/ts/index.html
@@ -4,7 +4,8 @@
Attribute Directives
-
+
+
diff --git a/public/docs/_examples/cb-a1-a2-quick-reference/ts/app/app.component.css b/public/docs/_examples/cb-a1-a2-quick-reference/ts/app/app.component.css
index 4c72bf954d..e454e9ea87 100644
--- a/public/docs/_examples/cb-a1-a2-quick-reference/ts/app/app.component.css
+++ b/public/docs/_examples/cb-a1-a2-quick-reference/ts/app/app.component.css
@@ -1,9 +1,3 @@
-/* route-link anchor tags */
-nav a {padding: 5px; text-decoration: none; font-family: Arial, Helvetica, sans-serif; }
-nav a:visited, a:link {color: #444;}
-nav a:hover {color: white; background-color: #1171a3; }
-nav a.router-link-active {color: white; background-color: #52b9e9; }
-
.active {font-style: italic;}
.shazam {font-weight: bold;}
diff --git a/public/docs/_examples/cb-a1-a2-quick-reference/ts/app/movie-list.component.css b/public/docs/_examples/cb-a1-a2-quick-reference/ts/app/movie-list.component.css
index 8476635e12..a3d5bf8161 100644
--- a/public/docs/_examples/cb-a1-a2-quick-reference/ts/app/movie-list.component.css
+++ b/public/docs/_examples/cb-a1-a2-quick-reference/ts/app/movie-list.component.css
@@ -7,7 +7,7 @@ table {
font-family:Arial, Helvetica, sans-serif;
color:#666;
font-size:14px;
- text-shadow: 1px 1px 0px #fff;
+ text-shadow: 1px 1px 0 #fff;
margin:20px;
border:#ccc 1px solid;
diff --git a/public/docs/_examples/cb-a1-a2-quick-reference/ts/index.html b/public/docs/_examples/cb-a1-a2-quick-reference/ts/index.html
index 80678619b3..37dda86237 100644
--- a/public/docs/_examples/cb-a1-a2-quick-reference/ts/index.html
+++ b/public/docs/_examples/cb-a1-a2-quick-reference/ts/index.html
@@ -4,6 +4,9 @@
Angular 1 to Angular 2 Quick Reference
+
+
+
diff --git a/public/docs/_examples/cb-component-communication/ts/index.html b/public/docs/_examples/cb-component-communication/ts/index.html
index 7014b8bbfa..8678794506 100644
--- a/public/docs/_examples/cb-component-communication/ts/index.html
+++ b/public/docs/_examples/cb-component-communication/ts/index.html
@@ -6,6 +6,7 @@
+
diff --git a/public/docs/_examples/dependency-injection/dart/web/index.html b/public/docs/_examples/dependency-injection/dart/web/index.html
index 66f07c0838..dd40fd6c61 100644
--- a/public/docs/_examples/dependency-injection/dart/web/index.html
+++ b/public/docs/_examples/dependency-injection/dart/web/index.html
@@ -4,7 +4,7 @@
Dependency Injection
-
+
diff --git a/public/docs/_examples/dependency-injection/ts/index.html b/public/docs/_examples/dependency-injection/ts/index.html
index 34702880e4..04cc28901d 100644
--- a/public/docs/_examples/dependency-injection/ts/index.html
+++ b/public/docs/_examples/dependency-injection/ts/index.html
@@ -4,6 +4,7 @@
Dependency Injection
+
diff --git a/public/docs/_examples/displaying-data/dart/web/index.html b/public/docs/_examples/displaying-data/dart/web/index.html
index 4e74743dae..6585d21511 100644
--- a/public/docs/_examples/displaying-data/dart/web/index.html
+++ b/public/docs/_examples/displaying-data/dart/web/index.html
@@ -3,6 +3,7 @@
Displaying Data
+
diff --git a/public/docs/_examples/displaying-data/ts/index.1.html b/public/docs/_examples/displaying-data/ts/index.1.html
index 4685bac9c7..93fcaa763d 100644
--- a/public/docs/_examples/displaying-data/ts/index.1.html
+++ b/public/docs/_examples/displaying-data/ts/index.1.html
@@ -3,6 +3,7 @@
Displaying Data
+
diff --git a/public/docs/_examples/displaying-data/ts/index.html b/public/docs/_examples/displaying-data/ts/index.html
index cf327f543f..5459c0c3fa 100644
--- a/public/docs/_examples/displaying-data/ts/index.html
+++ b/public/docs/_examples/displaying-data/ts/index.html
@@ -3,6 +3,7 @@
Displaying Data
+
diff --git a/public/docs/_examples/forms/js/styles.css b/public/docs/_examples/forms/dart/web/forms.css
similarity index 100%
rename from public/docs/_examples/forms/js/styles.css
rename to public/docs/_examples/forms/dart/web/forms.css
diff --git a/public/docs/_examples/forms/dart/web/index.html b/public/docs/_examples/forms/dart/web/index.html
index 19dfac369a..e99d87d263 100644
--- a/public/docs/_examples/forms/dart/web/index.html
+++ b/public/docs/_examples/forms/dart/web/index.html
@@ -11,6 +11,7 @@
+
diff --git a/public/docs/_examples/forms/dart/web/styles.css b/public/docs/_examples/forms/dart/web/styles.css
deleted file mode 100644
index 095bd1d44a..0000000000
--- a/public/docs/_examples/forms/dart/web/styles.css
+++ /dev/null
@@ -1,7 +0,0 @@
-/* #docregion */
-.ng-valid[required] {
- border-left: 5px solid #42A948; /* green */
-}
-.ng-invalid, .ng-invalid:focus {
- border-left: 5px solid #a94442; /* red */
-}
diff --git a/public/docs/_examples/forms/ts/styles.css b/public/docs/_examples/forms/js/forms.css
similarity index 100%
rename from public/docs/_examples/forms/ts/styles.css
rename to public/docs/_examples/forms/js/forms.css
diff --git a/public/docs/_examples/forms/js/index.html b/public/docs/_examples/forms/js/index.html
index 8d961a660f..1ded44aab9 100644
--- a/public/docs/_examples/forms/js/index.html
+++ b/public/docs/_examples/forms/js/index.html
@@ -11,6 +11,7 @@
+
diff --git a/public/docs/_examples/forms/ts/forms.css b/public/docs/_examples/forms/ts/forms.css
new file mode 100644
index 0000000000..d7e11405b1
--- /dev/null
+++ b/public/docs/_examples/forms/ts/forms.css
@@ -0,0 +1,9 @@
+/* #docregion */
+.ng-valid[required] {
+ border-left: 5px solid #42A948; /* green */
+}
+
+.ng-invalid {
+ border-left: 5px solid #a94442; /* red */
+}
+/* #enddocregion */
\ No newline at end of file
diff --git a/public/docs/_examples/forms/ts/index.html b/public/docs/_examples/forms/ts/index.html
index 8ebca9931f..b5b08869bc 100644
--- a/public/docs/_examples/forms/ts/index.html
+++ b/public/docs/_examples/forms/ts/index.html
@@ -10,6 +10,7 @@
+
diff --git a/public/docs/_examples/hierarchical-dependency-injection/dart/web/index.html b/public/docs/_examples/hierarchical-dependency-injection/dart/web/index.html
index cd76cf209b..598203b414 100644
--- a/public/docs/_examples/hierarchical-dependency-injection/dart/web/index.html
+++ b/public/docs/_examples/hierarchical-dependency-injection/dart/web/index.html
@@ -6,6 +6,7 @@
Hierarchical Injector
+
diff --git a/public/docs/_examples/hierarchical-dependency-injection/ts/index.html b/public/docs/_examples/hierarchical-dependency-injection/ts/index.html
index 19eb817608..e029217cee 100644
--- a/public/docs/_examples/hierarchical-dependency-injection/ts/index.html
+++ b/public/docs/_examples/hierarchical-dependency-injection/ts/index.html
@@ -3,6 +3,7 @@
Hierarchical Injectors
+
diff --git a/public/docs/_examples/homepage-hello-world/ts/index.1.html b/public/docs/_examples/homepage-hello-world/ts/index.1.html
index ecb437edc9..5305f8c937 100644
--- a/public/docs/_examples/homepage-hello-world/ts/index.1.html
+++ b/public/docs/_examples/homepage-hello-world/ts/index.1.html
@@ -4,6 +4,7 @@
Angular 2 Hello World
+
diff --git a/public/docs/_examples/homepage-hello-world/ts/index.html b/public/docs/_examples/homepage-hello-world/ts/index.html
index 32dc818f61..997edd82d7 100644
--- a/public/docs/_examples/homepage-hello-world/ts/index.html
+++ b/public/docs/_examples/homepage-hello-world/ts/index.html
@@ -4,6 +4,7 @@
Angular 2 Hello World
+
diff --git a/public/docs/_examples/homepage-tabs/ts/index.1.html b/public/docs/_examples/homepage-tabs/ts/index.1.html
index fddfd65ede..60e8cd9b7c 100644
--- a/public/docs/_examples/homepage-tabs/ts/index.1.html
+++ b/public/docs/_examples/homepage-tabs/ts/index.1.html
@@ -4,8 +4,8 @@
Angular 2 Tabs
-
+
diff --git a/public/docs/_examples/homepage-tabs/ts/index.html b/public/docs/_examples/homepage-tabs/ts/index.html
index c37331d93e..8cc7032da8 100644
--- a/public/docs/_examples/homepage-tabs/ts/index.html
+++ b/public/docs/_examples/homepage-tabs/ts/index.html
@@ -4,8 +4,8 @@
Angular 2 Tabs
-
+
diff --git a/public/docs/_examples/homepage-todo/ts/index.1.html b/public/docs/_examples/homepage-todo/ts/index.1.html
index 0438091b3a..3375008d86 100644
--- a/public/docs/_examples/homepage-todo/ts/index.1.html
+++ b/public/docs/_examples/homepage-todo/ts/index.1.html
@@ -4,8 +4,8 @@
Angular 2 Todos
-
+
diff --git a/public/docs/_examples/homepage-todo/ts/index.html b/public/docs/_examples/homepage-todo/ts/index.html
index ef91ed5f19..c0796e4ff2 100644
--- a/public/docs/_examples/homepage-todo/ts/index.html
+++ b/public/docs/_examples/homepage-todo/ts/index.html
@@ -4,9 +4,9 @@
Angular 2 Todos
-
-
+
+
diff --git a/public/docs/_examples/lifecycle-hooks/dart/web/index.html b/public/docs/_examples/lifecycle-hooks/dart/web/index.html
index eb830008ad..ae668dd2e9 100644
--- a/public/docs/_examples/lifecycle-hooks/dart/web/index.html
+++ b/public/docs/_examples/lifecycle-hooks/dart/web/index.html
@@ -4,6 +4,7 @@
Angular 2 Lifecycle Hooks
+
diff --git a/public/docs/_examples/lifecycle-hooks/ts/index.html b/public/docs/_examples/lifecycle-hooks/ts/index.html
index 62bec73470..a55cab995a 100644
--- a/public/docs/_examples/lifecycle-hooks/ts/index.html
+++ b/public/docs/_examples/lifecycle-hooks/ts/index.html
@@ -4,6 +4,7 @@
Angular 2 Lifecycle Hooks
+
diff --git a/public/docs/_examples/pipes/dart/web/index.html b/public/docs/_examples/pipes/dart/web/index.html
index 190cd7df3e..483b9537ba 100644
--- a/public/docs/_examples/pipes/dart/web/index.html
+++ b/public/docs/_examples/pipes/dart/web/index.html
@@ -2,6 +2,7 @@
Pipes Example
+
diff --git a/public/docs/_examples/pipes/ts/index.html b/public/docs/_examples/pipes/ts/index.html
index db8bee2dab..f11eba1c67 100644
--- a/public/docs/_examples/pipes/ts/index.html
+++ b/public/docs/_examples/pipes/ts/index.html
@@ -3,6 +3,7 @@
Pipes
+
diff --git a/public/docs/_examples/quickstart/dart/ex1/web/index.html b/public/docs/_examples/quickstart/dart/ex1/web/index.html
index 8bef2b4d44..a1e925b8fb 100644
--- a/public/docs/_examples/quickstart/dart/ex1/web/index.html
+++ b/public/docs/_examples/quickstart/dart/ex1/web/index.html
@@ -3,6 +3,7 @@
Getting Started
+
diff --git a/public/docs/_examples/quickstart/dart/ex2/web/index.html b/public/docs/_examples/quickstart/dart/ex2/web/index.html
index 8bef2b4d44..a1e925b8fb 100644
--- a/public/docs/_examples/quickstart/dart/ex2/web/index.html
+++ b/public/docs/_examples/quickstart/dart/ex2/web/index.html
@@ -3,6 +3,7 @@
Getting Started
+
diff --git a/public/docs/_examples/quickstart/js/index.html b/public/docs/_examples/quickstart/js/index.html
index bb7e38592b..1e66047c46 100644
--- a/public/docs/_examples/quickstart/js/index.html
+++ b/public/docs/_examples/quickstart/js/index.html
@@ -4,7 +4,8 @@
Angular 2 QuickStart
-
+
+
diff --git a/public/docs/_examples/quickstart/ts/index.html b/public/docs/_examples/quickstart/ts/index.html
index 28553919c5..40c8b29dd5 100644
--- a/public/docs/_examples/quickstart/ts/index.html
+++ b/public/docs/_examples/quickstart/ts/index.html
@@ -4,6 +4,7 @@
Angular 2 QuickStart
+
diff --git a/public/docs/_examples/router/ts/app/crisis-center/crisis-list.component.1.ts b/public/docs/_examples/router/ts/app/crisis-center/crisis-list.component.1.ts
index 5338092184..96854b910c 100644
--- a/public/docs/_examples/router/ts/app/crisis-center/crisis-list.component.1.ts
+++ b/public/docs/_examples/router/ts/app/crisis-center/crisis-list.component.1.ts
@@ -8,7 +8,7 @@ import {Router} from 'angular2/router';
@Component({
// #docregion template
template: `
-
+
-
{{crisis.id}} {{crisis.name}}
diff --git a/public/docs/_examples/router/ts/app/crisis-center/crisis-list.component.ts b/public/docs/_examples/router/ts/app/crisis-center/crisis-list.component.ts
index d4ac1a040c..8d6dcfca16 100644
--- a/public/docs/_examples/router/ts/app/crisis-center/crisis-list.component.ts
+++ b/public/docs/_examples/router/ts/app/crisis-center/crisis-list.component.ts
@@ -7,7 +7,7 @@ import {Router, RouteParams} from 'angular2/router';
@Component({
template: `
-
+
-
diff --git a/public/docs/_examples/router/ts/app/heroes/hero-list.component.1.ts b/public/docs/_examples/router/ts/app/heroes/hero-list.component.1.ts
index 78f5ad4cd4..05ca2ded3e 100644
--- a/public/docs/_examples/router/ts/app/heroes/hero-list.component.1.ts
+++ b/public/docs/_examples/router/ts/app/heroes/hero-list.component.1.ts
@@ -10,7 +10,7 @@ import {Router} from 'angular2/router';
// #docregion template
template: `
HEROES
-
+
-
{{hero.id}} {{hero.name}}
diff --git a/public/docs/_examples/router/ts/app/heroes/hero-list.component.ts b/public/docs/_examples/router/ts/app/heroes/hero-list.component.ts
index 7957d8702c..83f628704c 100644
--- a/public/docs/_examples/router/ts/app/heroes/hero-list.component.ts
+++ b/public/docs/_examples/router/ts/app/heroes/hero-list.component.ts
@@ -12,7 +12,7 @@ import {Router, RouteParams} from 'angular2/router';
// #docregion template
template: `
HEROES
-
+
-
diff --git a/public/docs/_examples/router/ts/index.1.html b/public/docs/_examples/router/ts/index.1.html
index a3501ad0ea..f6a027f1de 100644
--- a/public/docs/_examples/router/ts/index.1.html
+++ b/public/docs/_examples/router/ts/index.1.html
@@ -8,11 +8,13 @@
Router Sample
-
+
+
-
-
+
+
+
diff --git a/public/docs/_examples/router/ts/index.2.html b/public/docs/_examples/router/ts/index.2.html
index f38e4e1ef3..9fa6328a22 100644
--- a/public/docs/_examples/router/ts/index.2.html
+++ b/public/docs/_examples/router/ts/index.2.html
@@ -8,6 +8,12 @@
Router Sample
+
+
+
+
+
+
diff --git a/public/docs/_examples/router/ts/index.3.html b/public/docs/_examples/router/ts/index.3.html
index 505f6c7b29..8b66281cc9 100644
--- a/public/docs/_examples/router/ts/index.3.html
+++ b/public/docs/_examples/router/ts/index.3.html
@@ -8,6 +8,12 @@
Router Sample
+
+
+
+
+
+
diff --git a/public/docs/_examples/router/ts/index.html b/public/docs/_examples/router/ts/index.html
index dd605dfc43..dae130f8aa 100644
--- a/public/docs/_examples/router/ts/index.html
+++ b/public/docs/_examples/router/ts/index.html
@@ -10,14 +10,14 @@
Router Sample
-
+
-
+
diff --git a/public/docs/_examples/router/ts/styles.css b/public/docs/_examples/router/ts/styles.css
deleted file mode 100644
index 38d0ff595f..0000000000
--- a/public/docs/_examples/router/ts/styles.css
+++ /dev/null
@@ -1,38 +0,0 @@
-/* #docregion */
-/* #docregion heroes */
-/* #docregion starter */
-h1 {color: #369; font-family: Arial, Helvetica, sans-serif; font-size: 250%;}
-h2 { color: #369; font-family: Arial, Helvetica, sans-serif; }
-h3 { color: #444; font-weight: lighter; }
-body { margin: 2em; }
-body, input[text], button { color: #888; font-family: Cambria, Georgia; }
-button {padding: 0.2em; font-size: 14px}
-
-ul {list-style-type: none; margin-left: 1em; padding: 0; width: 20em;}
-
-li { cursor: pointer; position: relative; left: 0; transition: all 0.2s ease; }
-li:hover {color: #369; background-color: #EEE; left: .2em;}
-
-/* route-link anchor tags */
-a {padding: 5px; text-decoration: none; font-family: Arial, Helvetica, sans-serif; }
-a:visited, a:link {color: #444;}
-a:hover {color: white; background-color: #1171a3; }
-a.router-link-active {color: white; background-color: #52b9e9; }
-
-/* #enddocregion starter */
-/* #docregion selected */
-.selected { background-color: #EEE; color: #369; }
-/* #enddocregion selected */
-
-.badge {
- font-size: small;
- color: white;
- padding: 0.1em 0.7em;
- background-color: #369;
- line-height: 1em;
- position: relative;
- left: -1px;
- top: -1px;
-}
-/* #enddocregion heroes */
-/* #enddocregion */
\ No newline at end of file
diff --git a/public/docs/_examples/server-communication/ts/index.html b/public/docs/_examples/server-communication/ts/index.html
index 0e16c97766..94c08df802 100644
--- a/public/docs/_examples/server-communication/ts/index.html
+++ b/public/docs/_examples/server-communication/ts/index.html
@@ -4,6 +4,7 @@
Angular 2 Http Demo
+
diff --git a/public/docs/_examples/structural-directives/dart/web/index.html b/public/docs/_examples/structural-directives/dart/web/index.html
index fbf0f45df3..38da87dc69 100644
--- a/public/docs/_examples/structural-directives/dart/web/index.html
+++ b/public/docs/_examples/structural-directives/dart/web/index.html
@@ -4,6 +4,7 @@
Angular 2 Structural Directives
+
diff --git a/public/docs/_examples/structural-directives/ts/index.html b/public/docs/_examples/structural-directives/ts/index.html
index a8ee779981..3716c56686 100644
--- a/public/docs/_examples/structural-directives/ts/index.html
+++ b/public/docs/_examples/structural-directives/ts/index.html
@@ -4,6 +4,7 @@
Angular 2 Structural Directives
+
diff --git a/public/docs/_examples/styles.css b/public/docs/_examples/styles.css
new file mode 100644
index 0000000000..6162a3e76f
--- /dev/null
+++ b/public/docs/_examples/styles.css
@@ -0,0 +1,142 @@
+/* Master Styles */
+h1 {
+ color: #369;
+ font-family: Arial, Helvetica, sans-serif;
+ font-size: 250%;
+}
+h2, h3 {
+ color: #444;
+ font-family: Arial, Helvetica, sans-serif;
+ font-weight: lighter;
+}
+body {
+ margin: 2em;
+}
+body, input[text], button {
+ color: #888;
+ font-family: Cambria, Georgia;
+}
+a {
+ cursor: pointer;
+ cursor: hand;
+}
+button {
+ font-family: Arial;
+ background-color: #eee;
+ border: none;
+ padding: 5px 10px;
+ border-radius: 4px;
+ cursor: pointer;
+ cursor: hand;
+}
+button:hover {
+ background-color: #cfd8dc;
+}
+button:disabled {
+ background-color: #eee;
+ color: #aaa;
+ cursor: auto;
+}
+
+/* Navigation link styles */
+nav a {
+ padding: 5px 10px;
+ text-decoration: none;
+ margin-top: 10px;
+ display: inline-block;
+ background-color: #eee;
+ border-radius: 4px;
+}
+nav a:visited, a:link {
+ color: #607D8B;
+}
+nav a:hover {
+ color: #039be5;
+ background-color: #CFD8DC;
+}
+nav a.router-link-active {
+ color: #039be5;
+}
+
+/* items class */
+.items {
+ margin: 0 0 2em 0;
+ list-style-type: none;
+ padding: 0;
+ width: 24em;
+}
+.items li {
+ cursor: pointer;
+ position: relative;
+ left: 0;
+ background-color: #EEE;
+ margin: .5em;
+ padding: .3em 0;
+ height: 1.6em;
+ border-radius: 4px;
+}
+.items li:hover {
+ color: #607D8B;
+ background-color: #DDD;
+ left: .1em;
+}
+.items li.selected:hover {
+ background-color: #BBD8DC !important;
+ color: white;
+}
+.items .text {
+ position: relative;
+ top: -3px;
+}
+.items {
+ margin: 0 0 2em 0;
+ list-style-type: none;
+ padding: 0;
+ width: 24em;
+}
+.items li {
+ cursor: pointer;
+ position: relative;
+ left: 0;
+ background-color: #EEE;
+ margin: .5em;
+ padding: .3em 0;
+ height: 1.6em;
+ border-radius: 4px;
+}
+.items li:hover {
+ color: #607D8B;
+ background-color: #DDD;
+ left: .1em;
+}
+.items li.selected {
+ background-color: #CFD8DC;
+ color: white;
+}
+
+.items li.selected:hover {
+ background-color: #BBD8DC;
+}
+.items .text {
+ position: relative;
+ top: -3px;
+}
+.items .badge {
+ display: inline-block;
+ font-size: small;
+ color: white;
+ padding: 0.8em 0.7em 0em 0.7em;
+ background-color: #607D8B;
+ line-height: 1em;
+ position: relative;
+ left: -1px;
+ top: -4px;
+ height: 1.8em;
+ margin-right: .8em;
+ border-radius: 4px 0 0 4px;
+}
+
+/* everywhere else */
+* {
+ font-family: Arial, Helvetica, sans-serif;
+}
diff --git a/public/docs/_examples/template-syntax/dart/web/index.html b/public/docs/_examples/template-syntax/dart/web/index.html
index 32d12818ef..3444f9f8f9 100644
--- a/public/docs/_examples/template-syntax/dart/web/index.html
+++ b/public/docs/_examples/template-syntax/dart/web/index.html
@@ -4,6 +4,8 @@
Template Syntax
+
+
diff --git a/public/docs/_examples/template-syntax/dart/web/styles.css b/public/docs/_examples/template-syntax/dart/web/template-syntax.css
similarity index 100%
rename from public/docs/_examples/template-syntax/dart/web/styles.css
rename to public/docs/_examples/template-syntax/dart/web/template-syntax.css
diff --git a/public/docs/_examples/template-syntax/ts/index.html b/public/docs/_examples/template-syntax/ts/index.html
index 35cb8fcf30..de5a5606aa 100644
--- a/public/docs/_examples/template-syntax/ts/index.html
+++ b/public/docs/_examples/template-syntax/ts/index.html
@@ -4,7 +4,8 @@
Template Syntax
-
+
+
diff --git a/public/docs/_examples/template-syntax/ts/styles.css b/public/docs/_examples/template-syntax/ts/template-syntax.css
similarity index 100%
rename from public/docs/_examples/template-syntax/ts/styles.css
rename to public/docs/_examples/template-syntax/ts/template-syntax.css
diff --git a/public/docs/_examples/toh-1/ts/index.html b/public/docs/_examples/toh-1/ts/index.html
index 4ac5037e4f..60f79db028 100644
--- a/public/docs/_examples/toh-1/ts/index.html
+++ b/public/docs/_examples/toh-1/ts/index.html
@@ -3,6 +3,7 @@
Angular 2 Tour of Heroes
+
diff --git a/public/docs/_examples/toh-2/ts/app/app.component.ts b/public/docs/_examples/toh-2/ts/app/app.component.ts
index f583eca8e7..cf719e6589 100644
--- a/public/docs/_examples/toh-2/ts/app/app.component.ts
+++ b/public/docs/_examples/toh-2/ts/app/app.component.ts
@@ -45,16 +45,17 @@ interface Hero {
left: 0;
background-color: #EEE;
margin: .5em;
- padding: .3em 0em;
+ padding: .3em 0;
height: 1.6em;
border-radius: 4px;
}
.heroes li.selected:hover {
+ background-color: #BBD8DC !important;
color: white;
}
.heroes li:hover {
color: #607D8B;
- background-color: #EEE;
+ background-color: #DDD;
left: .1em;
}
.heroes .text {
@@ -65,7 +66,7 @@ interface Hero {
display: inline-block;
font-size: small;
color: white;
- padding: 0.8em 0.7em 0em 0.7em;
+ padding: 0.8em 0.7em 0 0.7em;
background-color: #607D8B;
line-height: 1em;
position: relative;
@@ -73,7 +74,7 @@ interface Hero {
top: -4px;
height: 1.8em;
margin-right: .8em;
- border-radius: 4px 0px 0px 4px;
+ border-radius: 4px 0 0 4px;
}
`]
// #enddocregion styles-1
diff --git a/public/docs/_examples/toh-2/ts/index.html b/public/docs/_examples/toh-2/ts/index.html
index cd3a7d38a7..22fff97287 100644
--- a/public/docs/_examples/toh-2/ts/index.html
+++ b/public/docs/_examples/toh-2/ts/index.html
@@ -3,6 +3,7 @@
Angular 2 Tour of Heros
+
diff --git a/public/docs/_examples/toh-3/ts/app/app.component.ts b/public/docs/_examples/toh-3/ts/app/app.component.ts
index 2a5c79abd5..d0fdea50e1 100644
--- a/public/docs/_examples/toh-3/ts/app/app.component.ts
+++ b/public/docs/_examples/toh-3/ts/app/app.component.ts
@@ -40,16 +40,17 @@ import {HeroDetailComponent} from './hero-detail.component';
left: 0;
background-color: #EEE;
margin: .5em;
- padding: .3em 0em;
+ padding: .3em 0;
height: 1.6em;
border-radius: 4px;
}
.heroes li.selected:hover {
+ background-color: #BBD8DC !important;
color: white;
}
.heroes li:hover {
color: #607D8B;
- background-color: #EEE;
+ background-color: #DDD;
left: .1em;
}
.heroes .text {
@@ -60,7 +61,7 @@ import {HeroDetailComponent} from './hero-detail.component';
display: inline-block;
font-size: small;
color: white;
- padding: 0.8em 0.7em 0em 0.7em;
+ padding: 0.8em 0.7em 0 0.7em;
background-color: #607D8B;
line-height: 1em;
position: relative;
@@ -68,7 +69,7 @@ import {HeroDetailComponent} from './hero-detail.component';
top: -4px;
height: 1.8em;
margin-right: .8em;
- border-radius: 4px 0px 0px 4px;
+ border-radius: 4px 0 0 4px;
}
`],
// #docregion directives
diff --git a/public/docs/_examples/toh-3/ts/index.html b/public/docs/_examples/toh-3/ts/index.html
index 4ac5037e4f..60f79db028 100644
--- a/public/docs/_examples/toh-3/ts/index.html
+++ b/public/docs/_examples/toh-3/ts/index.html
@@ -3,6 +3,7 @@
Angular 2 Tour of Heroes
+
diff --git a/public/docs/_examples/toh-4/ts/app/app.component.ts b/public/docs/_examples/toh-4/ts/app/app.component.ts
index 76035bb3d7..bc587e2390 100644
--- a/public/docs/_examples/toh-4/ts/app/app.component.ts
+++ b/public/docs/_examples/toh-4/ts/app/app.component.ts
@@ -40,16 +40,17 @@ import {HeroService} from './hero.service';
left: 0;
background-color: #EEE;
margin: .5em;
- padding: .3em 0em;
+ padding: .3em 0;
height: 1.6em;
border-radius: 4px;
}
.heroes li.selected:hover {
+ background-color: #BBD8DC !important;
color: white;
}
.heroes li:hover {
color: #607D8B;
- background-color: #EEE;
+ background-color: #DDD;
left: .1em;
}
.heroes .text {
@@ -60,7 +61,7 @@ import {HeroService} from './hero.service';
display: inline-block;
font-size: small;
color: white;
- padding: 0.8em 0.7em 0em 0.7em;
+ padding: 0.8em 0.7em 0 0.7em;
background-color: #607D8B;
line-height: 1em;
position: relative;
@@ -68,7 +69,7 @@ import {HeroService} from './hero.service';
top: -4px;
height: 1.8em;
margin-right: .8em;
- border-radius: 4px 0px 0px 4px;
+ border-radius: 4px 0 0 4px;
}
`],
directives: [HeroDetailComponent],
diff --git a/public/docs/_examples/toh-4/ts/index.html b/public/docs/_examples/toh-4/ts/index.html
index aee24e8cc3..96cc8e84f1 100644
--- a/public/docs/_examples/toh-4/ts/index.html
+++ b/public/docs/_examples/toh-4/ts/index.html
@@ -3,6 +3,7 @@
Angular 2 Tour of Heroes
+
diff --git a/public/docs/_examples/toh-5/ts/app/dashboard.component.css b/public/docs/_examples/toh-5/ts/app/dashboard.component.css
index 9ce340d052..ce6e963a5f 100644
--- a/public/docs/_examples/toh-5/ts/app/dashboard.component.css
+++ b/public/docs/_examples/toh-5/ts/app/dashboard.component.css
@@ -19,7 +19,7 @@ h3 {
padding-right: 0;
}
.grid {
- margin: 0 0em;
+ margin: 0;
}
.col-1-4 {
width: 25%;
diff --git a/public/docs/_examples/toh-5/ts/app/hero-detail.component.css b/public/docs/_examples/toh-5/ts/app/hero-detail.component.css
index 9b2b954d64..ab2437efd8 100644
--- a/public/docs/_examples/toh-5/ts/app/hero-detail.component.css
+++ b/public/docs/_examples/toh-5/ts/app/hero-detail.component.css
@@ -22,4 +22,9 @@ button {
}
button:hover {
background-color: #cfd8dc;
-}
\ No newline at end of file
+}
+button:disabled {
+ background-color: #eee;
+ color: #ccc;
+ cursor: auto;
+}
diff --git a/public/docs/_examples/toh-5/ts/app/heroes.component.css b/public/docs/_examples/toh-5/ts/app/heroes.component.css
index f74c0e1642..d939ab565d 100644
--- a/public/docs/_examples/toh-5/ts/app/heroes.component.css
+++ b/public/docs/_examples/toh-5/ts/app/heroes.component.css
@@ -1,4 +1,3 @@
-/* #docregion */
.selected {
background-color: #CFD8DC !important;
color: white;
@@ -15,18 +14,19 @@
left: 0;
background-color: #EEE;
margin: .5em;
- padding: .3em 0em;
+ padding: .3em 0;
height: 1.6em;
border-radius: 4px;
}
-.heroes li.selected:hover {
- color: white;
-}
.heroes li:hover {
color: #607D8B;
- background-color: #EEE;
+ background-color: #DDD;
left: .1em;
}
+.heroes li.selected:hover {
+ background-color: #BBD8DC !important;
+ color: white;
+}
.heroes .text {
position: relative;
top: -3px;
@@ -35,7 +35,7 @@
display: inline-block;
font-size: small;
color: white;
- padding: 0.8em 0.7em 0em 0.7em;
+ padding: 0.8em 0.7em 0 0.7em;
background-color: #607D8B;
line-height: 1em;
position: relative;
@@ -43,5 +43,17 @@
top: -4px;
height: 1.8em;
margin-right: .8em;
- border-radius: 4px 0px 0px 4px;
-}
\ No newline at end of file
+ border-radius: 4px 0 0 4px;
+}
+button {
+ font-family: Arial;
+ background-color: #eee;
+ border: none;
+ padding: 5px 10px;
+ border-radius: 4px;
+ cursor: pointer;
+ cursor: hand;
+}
+button:hover {
+ background-color: #cfd8dc;
+}
diff --git a/public/docs/_examples/toh-5/ts/styles.1.css b/public/docs/_examples/toh-5/ts/styles.1.css
new file mode 100644
index 0000000000..5b77b74d1c
--- /dev/null
+++ b/public/docs/_examples/toh-5/ts/styles.1.css
@@ -0,0 +1,34 @@
+/* #docregion */
+h2 {
+ color: #444;
+ font-family: Arial, Helvetica, sans-serif;
+ font-weight: lighter;
+}
+body {
+ margin: 2em;
+}
+body, input[text], button {
+ color: #888;
+ font-family: Cambria, Georgia;
+}
+button {
+ font-family: Arial;
+ background-color: #eee;
+ border: none;
+ padding: 5px 10px;
+ border-radius: 4px;
+ cursor: pointer;
+ cursor: hand;
+}
+button:hover {
+ background-color: #cfd8dc;
+}
+button:disabled {
+ background-color: #eee;
+ color: #aaa;
+ cursor: auto;
+}
+/* everywhere else */
+* {
+ font-family: Arial, Helvetica, sans-serif;
+}
diff --git a/public/docs/_examples/toh-5/ts/styles.css b/public/docs/_examples/toh-5/ts/styles.css
deleted file mode 100644
index 88ec8391d3..0000000000
--- a/public/docs/_examples/toh-5/ts/styles.css
+++ /dev/null
@@ -1,7 +0,0 @@
-/* #docplaster */
-/* #docregion */
-h2 { color: #444; font-weight: lighter; }
-body { margin: 2em; }
-body, input[text], button { color: #888; font-family: Cambria, Georgia; }
-button { padding: 0.2em; font-size: 14px}
-* { font-family: Arial; }
diff --git a/public/docs/_examples/tutorial/ts/app/app.component.css b/public/docs/_examples/tutorial/ts/app/app.component.css
index 5800fecdb0..246b8c875b 100644
--- a/public/docs/_examples/tutorial/ts/app/app.component.css
+++ b/public/docs/_examples/tutorial/ts/app/app.component.css
@@ -1,4 +1,4 @@
-a {
+nav a {
padding: 5px 10px;
text-decoration: none;
margin-top: 10px;
@@ -6,14 +6,14 @@ a {
background-color: #eee;
border-radius: 4px;
}
-a:visited, a:link {
+nav a:visited, a:link {
color: #607D8B;
}
-a:hover {
+nav a:hover {
color: #039be5;
background-color: #CFD8DC;
}
-a.router-link-active {
+nav a.router-link-active {
color: #039be5;
}
h1 {
diff --git a/public/docs/_examples/tutorial/ts/app/app.component.ts b/public/docs/_examples/tutorial/ts/app/app.component.ts
index a66d06c18f..1cea6e8f9c 100644
--- a/public/docs/_examples/tutorial/ts/app/app.component.ts
+++ b/public/docs/_examples/tutorial/ts/app/app.component.ts
@@ -9,8 +9,10 @@ import {HeroService} from './hero.service';
selector: 'my-app',
template: `
{{title}}
- Dashboard
- Heroes
+
`,
styleUrls: ['app/app.component.css'],
diff --git a/public/docs/_examples/tutorial/ts/app/dashboard.component.css b/public/docs/_examples/tutorial/ts/app/dashboard.component.css
index 51968caa0b..d000c0c77e 100644
--- a/public/docs/_examples/tutorial/ts/app/dashboard.component.css
+++ b/public/docs/_examples/tutorial/ts/app/dashboard.component.css
@@ -17,7 +17,7 @@ h3 {
padding-right: 0;
}
.grid {
- margin: 0 0em;
+ margin: 0;
}
.col-1-4 {
width: 25%;
diff --git a/public/docs/_examples/tutorial/ts/app/hero-detail.component.css b/public/docs/_examples/tutorial/ts/app/hero-detail.component.css
index 18fa6cb309..b5ab6e6e0b 100644
--- a/public/docs/_examples/tutorial/ts/app/hero-detail.component.css
+++ b/public/docs/_examples/tutorial/ts/app/hero-detail.component.css
@@ -21,4 +21,9 @@ button {
}
button:hover {
background-color: #cfd8dc;
-}
\ No newline at end of file
+}
+button:disabled {
+ background-color: #eee;
+ color: #ccc;
+ cursor: auto;
+}
diff --git a/public/docs/_examples/tutorial/ts/app/heroes.component.css b/public/docs/_examples/tutorial/ts/app/heroes.component.css
index 1e823bf9a4..d939ab565d 100644
--- a/public/docs/_examples/tutorial/ts/app/heroes.component.css
+++ b/public/docs/_examples/tutorial/ts/app/heroes.component.css
@@ -14,16 +14,17 @@
left: 0;
background-color: #EEE;
margin: .5em;
- padding: .3em 0em;
+ padding: .3em 0;
height: 1.6em;
border-radius: 4px;
}
.heroes li:hover {
color: #607D8B;
- background-color: #EEE;
+ background-color: #DDD;
left: .1em;
}
.heroes li.selected:hover {
+ background-color: #BBD8DC !important;
color: white;
}
.heroes .text {
@@ -34,7 +35,7 @@
display: inline-block;
font-size: small;
color: white;
- padding: 0.8em 0.7em 0em 0.7em;
+ padding: 0.8em 0.7em 0 0.7em;
background-color: #607D8B;
line-height: 1em;
position: relative;
@@ -42,7 +43,7 @@
top: -4px;
height: 1.8em;
margin-right: .8em;
- border-radius: 4px 0px 0px 4px;
+ border-radius: 4px 0 0 4px;
}
button {
font-family: Arial;
@@ -55,4 +56,4 @@ button {
}
button:hover {
background-color: #cfd8dc;
-}
\ No newline at end of file
+}
diff --git a/public/docs/_examples/tutorial/ts/styles.css b/public/docs/_examples/tutorial/ts/styles.css
deleted file mode 100644
index a624822892..0000000000
--- a/public/docs/_examples/tutorial/ts/styles.css
+++ /dev/null
@@ -1,5 +0,0 @@
-h2 { color: #444; font-weight: lighter; }
-body { margin: 2em; }
-body, input[text], button { color: #888; font-family: Cambria, Georgia; }
-button { padding: 0.2em; font-size: 14px}
-* { font-family: Arial; }
diff --git a/public/docs/_examples/user-input/dart/web/index.html b/public/docs/_examples/user-input/dart/web/index.html
index 760bf63340..6081616684 100644
--- a/public/docs/_examples/user-input/dart/web/index.html
+++ b/public/docs/_examples/user-input/dart/web/index.html
@@ -3,6 +3,9 @@
User Input
+
+
+
diff --git a/public/docs/_examples/user-input/ts/styles.css b/public/docs/_examples/user-input/dart/web/user-input-styles.css
similarity index 100%
rename from public/docs/_examples/user-input/ts/styles.css
rename to public/docs/_examples/user-input/dart/web/user-input-styles.css
diff --git a/public/docs/_examples/user-input/ts/index.html b/public/docs/_examples/user-input/ts/index.html
index c554524839..a4f6d0eb91 100644
--- a/public/docs/_examples/user-input/ts/index.html
+++ b/public/docs/_examples/user-input/ts/index.html
@@ -4,6 +4,7 @@
User Input
+
@@ -16,7 +17,7 @@