diff --git a/public/docs/_examples/gettingstarted/e2e-spec.js b/public/docs/_examples/gettingstarted/e2e-spec.js
index bbb8089d9f..e479cea085 100644
--- a/public/docs/_examples/gettingstarted/e2e-spec.js
+++ b/public/docs/_examples/gettingstarted/e2e-spec.js
@@ -11,7 +11,7 @@ describe('Getting Started E2E Tests', function () {
});
it('should display: ' + expectedMsg, function () {
- expect(element(by.id('output')).getText()).toEqual(expectedMsg);
+ expect(element(by.css('h1')).getText()).toEqual(expectedMsg);
});
}
// #enddocregion
diff --git a/public/docs/_examples/gettingstarted/js/app.js b/public/docs/_examples/gettingstarted/js/app.js
index a590cd7ed7..13c1bad380 100644
--- a/public/docs/_examples/gettingstarted/js/app.js
+++ b/public/docs/_examples/gettingstarted/js/app.js
@@ -9,7 +9,7 @@ var AppComponent = ng
// #enddocregion
// #docregion view
.View({
- template: '
My First Angular 2 App
'
+ template: 'My First Angular 2 App
'
})
// #enddocregion
// #docregion class
diff --git a/public/docs/_examples/gettingstarted/ts/README.md b/public/docs/_examples/gettingstarted/ts/README.md
index e11db48702..8c381820ad 100644
--- a/public/docs/_examples/gettingstarted/ts/README.md
+++ b/public/docs/_examples/gettingstarted/ts/README.md
@@ -1,8 +1,6 @@
#Getting Started (TS) for the DevGuide developer
-This is the source code for the "Getting Started" Typescrip example code.
-
-There are files here that are *for the audience* and **not to be executed during example development**!
+This is the source code for the "Getting Started" Typescript example code.
* **package.json** - as the audience will see it; the example reaches up to the site level **node_modules**
and the scripts are not supposed to work here.
diff --git a/public/docs/_examples/gettingstarted/ts/package.json b/public/docs/_examples/gettingstarted/ts/package.json
index 353c02007e..d9de287642 100644
--- a/public/docs/_examples/gettingstarted/ts/package.json
+++ b/public/docs/_examples/gettingstarted/ts/package.json
@@ -1,15 +1,16 @@
{
- "name": "ng2-getting-started",
- "version": "0.0.1",
- "dependencies": {
- "angular2": "2.0.0-alpha.35",
- "es6-module-loader": "^0.16",
- "systemjs": "^0.16",
- "traceur": "0.0.91"
- },
+ "name": "angular2-getting-started",
+ "version": "1.0.0",
+ "description": "",
+ "main": "index.js",
"scripts": {
- "postinstall": "cd src && tsd reinstall -r -o && cd ..",
- "tsc": "tsc -p src -w",
- "start": "live-server --open=src"
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "keywords": [],
+ "author": "",
+ "license": "ISC",
+ "dependencies": {
+ "angular2": "^2.0.0-alpha.37",
+ "systemjs": "^0.19.2"
}
}
diff --git a/public/docs/_examples/gettingstarted/ts/src/app.ts b/public/docs/_examples/gettingstarted/ts/src/app/app.ts
similarity index 63%
rename from public/docs/_examples/gettingstarted/ts/src/app.ts
rename to public/docs/_examples/gettingstarted/ts/src/app/app.ts
index 1e6cd84e77..330cebdbd2 100644
--- a/public/docs/_examples/gettingstarted/ts/src/app.ts
+++ b/public/docs/_examples/gettingstarted/ts/src/app/app.ts
@@ -1,21 +1,19 @@
// #docregion
// #docregion import
import {Component, View, bootstrap} from 'angular2/angular2';
-// #enddocregion
-
+// #enddocregion import
// #docregion class-w-annotations
@Component({
selector: 'my-app'
})
@View({
- template: 'My First Angular 2 App
'
+ template: 'My First Angular 2 App
'
})
// #docregion class
class AppComponent { }
-// #enddocregion
-// #enddocregion
+// #enddocregion class
+// #enddocregion class-w-annotations
// #docregion bootstrap
bootstrap(AppComponent);
-// #enddocregion
-// #enddocregion
\ No newline at end of file
+// #enddocregion bootstrap
diff --git a/public/docs/_examples/gettingstarted/ts/src/dummy.spec.ts b/public/docs/_examples/gettingstarted/ts/src/dummy.spec.ts
deleted file mode 100644
index fdf13c8cfc..0000000000
--- a/public/docs/_examples/gettingstarted/ts/src/dummy.spec.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-describe("Jasmine sample test", function() {
-
- it("1+1 should be 2", function() {
-
- var result = 1 + 1;
-
- expect(result).toBe(2);
- });
-});
\ No newline at end of file
diff --git a/public/docs/_examples/gettingstarted/ts/src/index.html b/public/docs/_examples/gettingstarted/ts/src/index.html
index fbd6880194..7c6a89ccc4 100644
--- a/public/docs/_examples/gettingstarted/ts/src/index.html
+++ b/public/docs/_examples/gettingstarted/ts/src/index.html
@@ -1,16 +1,20 @@
-
+
-
+
-
+ Loading...
-
+
+