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

Commit 8ccc33e

Browse files
authored
[WIP] docs(quickstart): QuickStart reboot (#2762)
1 parent bcab064 commit 8ccc33e

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

+855
-564
lines changed

public/_includes/_next-item.jade

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

57
for page, slug in data
68

79
// CHECK IF CURRENT PAGE IS SET, THEN SET NEXT PAGE
810
if currentPage
911
if !nextPage && page.nextable && !page.hide
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}
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}
1316

1417
//NEXT PAGE HAS NOW BEEN SET
1518
- var nextPage = true
1619

20+
- hideNextPage = page.hideNextPage
21+
1722
// SET CURRENT PAGE FLAG WHEN YOU PASS IT
1823
if current.path[4] == slug
1924
- var currentPage = true

public/docs/_examples/_boilerplate/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "angular-examples",
33
"version": "1.0.0",
4+
"private": true,
45
"description": "Example package.json, only contains needed scripts for examples. See _examples/package.json for master package.json.",
56
"scripts": {
67
"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('My First Angular App');
14+
expect(headingSelector.getText()).toEqual('Hello Angular');
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">My First Angular App</h1>
3+
<h1 *ngIf="showHeading">Hello Angular</h1>
44

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

public/docs/_examples/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "angular-examples-master",
33
"version": "1.0.0",
4+
"private": true,
45
"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.",
56
"scripts": {
67
"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

public/docs/_examples/quickstart/ts/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
// #docregion
2-
// #docregion import
32
import { Component } from '@angular/core';
4-
// #enddocregion import
53

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

0 commit comments

Comments
 (0)