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

Commit a752572

Browse files
committed
Revert "[WIP] docs(quickstart): QuickStart reboot (#2762)"
This reverts commit 8ccc33e.
1 parent 8ccc33e commit a752572

Some content is hidden

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

58 files changed

+564
-855
lines changed

public/_includes/_next-item.jade

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
11
- var currentPage = false
22
- var nextPage = false
3-
- var hideNextPage = false;
4-
53
- var data = public.docs[current.path[1]][current.path[2]][current.path[3]]._data
64

75
for page, slug in data
86

97
// CHECK IF CURRENT PAGE IS SET, THEN SET NEXT PAGE
108
if currentPage
119
if !nextPage && page.nextable && !page.hide
12-
if !hideNextPage
13-
.l-sub-section
14-
h3 Next Step
15-
a(href="/docs/#{current.path[1]}/#{current.path[2]}/#{current.path[3]}/#{slug}.html") #{page.title}
10+
.l-sub-section
11+
h3 Next Step
12+
a(href="/docs/#{current.path[1]}/#{current.path[2]}/#{current.path[3]}/#{slug}.html") #{page.title}
1613

1714
//NEXT PAGE HAS NOW BEEN SET
1815
- var nextPage = true
1916

20-
- hideNextPage = page.hideNextPage
21-
2217
// SET CURRENT PAGE FLAG WHEN YOU PASS IT
2318
if current.path[4] == slug
2419
- var currentPage = true

public/docs/_examples/_boilerplate/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "angular-examples",
33
"version": "1.0.0",
4-
"private": true,
54
"description": "Example package.json, only contains needed scripts for examples. See _examples/package.json for master package.json.",
65
"scripts": {
76
"start": "tsc && concurrently \"tsc -w\" \"lite-server\" ",

public/docs/_examples/cb-aot-compiler/e2e-spec.ts

Lines changed: 2 additions & 2 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

@@ -11,7 +11,7 @@ describe('AOT Compilation', function () {
1111

1212
it('should load page and click button', function (done) {
1313
let headingSelector = element.all(by.css('h1')).get(0);
14-
expect(headingSelector.getText()).toEqual('Hello Angular');
14+
expect(headingSelector.getText()).toEqual('My First Angular App');
1515

1616
expect(element.all(by.xpath('//div[text()="Magneta"]')).get(0).isPresent()).toBe(true);
1717
expect(element.all(by.xpath('//div[text()="Bombasto"]')).get(0).isPresent()).toBe(true);

public/docs/_examples/cb-aot-compiler/ts/app/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- #docregion -->
22
<button (click)="toggleHeading()">Toggle Heading</button>
3-
<h1 *ngIf="showHeading">Hello Angular</h1>
3+
<h1 *ngIf="showHeading">My First Angular App</h1>
44

55
<h3>List of Heroes</h3>
66
<div *ngFor="let hero of heroes">{{hero}}</div>

public/docs/_examples/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "angular-examples-master",
33
"version": "1.0.0",
4-
"private": true,
54
"description": "Master package.json, the superset of all dependencies for all of the _example package.json files. See _boilerplate/package.json for example npm scripts.",
65
"scripts": {
76
"protractor": "protractor",

public/docs/_examples/quickstart/dart/lib/app_component.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'package:angular2/core.dart';
55
// #docregion metadata
66
@Component(
77
selector: 'my-app',
8-
template: '<h1>Hello Angular</h1>')
8+
template: '<h1>Hello Angular!</h1>')
99
// #enddocregion metadata
1010
// #docregion class
1111
class AppComponent {}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { browser, element, by } from 'protractor';
44

55
describe('QuickStart E2E Tests', function () {
66

7-
let expectedMsg = 'Hello Angular';
7+
let expectedMsg = 'Hello Angular!';
88

99
beforeEach(function () {
1010
browser.get('');

public/docs/_examples/quickstart/js/app/app.component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
ng.core.Component({
1111
// #enddocregion ng-namespace-funcs
1212
selector: 'my-app',
13-
template: '<h1>Hello Angular</h1>'
13+
template: '<h1>Hello Angular!</h1>'
1414
// #docregion ng-namespace-funcs
1515
})
1616
// #enddocregion component
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!systemjs.config.1.js
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
// #docregion
2+
// #docregion import
23
import { Component } from '@angular/core';
4+
// #enddocregion import
35

6+
// #docregion metadata
47
@Component({
58
selector: 'my-app',
6-
template: `<h1>Hello {{name}}</h1>`
9+
template: '<h1>Hello Angular!</h1>'
710
})
8-
export class AppComponent { name = 'Angular'; }
11+
// #enddocregion metadata
12+
// #docregion class
13+
export class AppComponent { }
14+
// #enddocregion class

0 commit comments

Comments
 (0)