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

Commit 3158397

Browse files
committed
docs(prod-deploy): Ward's copy edits
1 parent 8f6f225 commit 3158397

File tree

9 files changed

+447
-379
lines changed

9 files changed

+447
-379
lines changed

public/docs/_examples/production-deploy/ts/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Component } from '@angular/core';
44
@Component({
55
selector: 'my-app',
66
template: `
7-
<h1>Production Deployment Sample</h1>
7+
<h1>Simple Deployment</h1>
88
<nav>
99
<a routerLink="/crisis-center" routerLinkActive="active">Crisis Center</a>
1010
<a routerLink="/heroes" routerLinkActive="active">Heroes</a>

public/docs/_examples/production-deploy/ts/app/app.module.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@ import { BrowserModule } from '@angular/platform-browser';
44
import { RouterModule, Routes } from '@angular/router';
55

66
import { AppComponent } from './app.component';
7-
import { HeroListComponent } from './hero-list.component';
87
import { CrisisListComponent } from './crisis-list.component';
9-
import { PageNotFoundComponent } from './not-found.component';
8+
import { HeroListComponent } from './hero-list.component';
109

1110
const appRoutes: Routes = [
1211
{ path: 'crisis-center', component: CrisisListComponent },
1312
{ path: 'heroes', component: HeroListComponent },
1413

15-
{ path: '', redirectTo: '/heroes', pathMatch: 'full' },
16-
{ path: '**', component: PageNotFoundComponent }
14+
{ path: '', redirectTo: '/heroes', pathMatch: 'full' }
1715
];
1816

1917
@NgModule({
@@ -23,9 +21,8 @@ const appRoutes: Routes = [
2321
],
2422
declarations: [
2523
AppComponent,
26-
HeroListComponent,
2724
CrisisListComponent,
28-
PageNotFoundComponent
25+
HeroListComponent
2926
],
3027
bootstrap: [ AppComponent ]
3128
})

public/docs/_examples/production-deploy/ts/app/not-found.component.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

public/docs/_examples/production-deploy/ts/index.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,29 @@
22
<!DOCTYPE html>
33
<html>
44
<head>
5-
<!- Simplest Deployment Possible doesn't load from node_modules! -->
5+
<!- Doesn't load from node_modules! -->
66

77
<!-- Set the base href -->
88
<base href="/">
9-
<title>Simplest Deployment Possible</title>
9+
<title>Simple Deployment</title>
1010
<meta charset="UTF-8">
1111
<meta name="viewport" content="width=device-width, initial-scale=1">
1212
<link rel="stylesheet" href="styles.css">
1313

14+
<!-- #docregion node-module-scripts -->
1415
<!-- Polyfills for older browsers -->
1516
<script src="https://unpkg.com/core-js/client/shim.min.js"></script>
1617

18+
<!-- Update these package versions as needed -->
1719
<script src="https://unpkg.com/zone.js@0.7.4?main=browser"></script>
18-
<script src="https://unpkg.com/reflect-metadata@0.1.8"></script>
1920
<script src="https://unpkg.com/systemjs@0.19.39/dist/system.src.js"></script>
21+
<!-- #enddocregion node-module-scripts -->
2022

21-
<!-- SystemJS configuration loads umd packages from the web -->
23+
<!-- #docregion systemjs-config -->
24+
<!-- This SystemJS configuration loads umd packages from the web -->
2225
<script src="systemjs.config.server.js"></script>
26+
<!-- #enddocregion systemjs-config -->
27+
2328
<script>
2429
System.import('app')
2530
.catch(function(err){ console.error(err); });

public/docs/_examples/production-deploy/ts/systemjs.config.server.js

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,24 @@
77
(function (global) {
88
System.config({
99
paths: {
10-
// paths serve as alias
11-
'npm:': 'https://unpkg.com/'
10+
'npm:': 'https://unpkg.com/' // path serves as alias
1211
},
1312
// map tells the System loader where to look for things
1413
map: {
15-
// our app is within the app folder
16-
app: 'app',
14+
app: 'app', // location of transpiled app files
1715

18-
// angular bundles
19-
'@angular/core': 'npm:@angular/core/bundles/core.umd.js',
20-
'@angular/common': 'npm:@angular/common/bundles/common.umd.js',
21-
'@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
22-
'@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
23-
'@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
24-
'@angular/http': 'npm:@angular/http/bundles/http.umd.js',
25-
'@angular/router': 'npm:@angular/router/bundles/router.umd.js',
26-
'@angular/router/upgrade': 'npm:@angular/router/bundles/router-upgrade.umd.js',
27-
'@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',
28-
'@angular/upgrade': 'npm:@angular/upgrade/bundles/upgrade.umd.js',
29-
'@angular/upgrade/static': 'npm:@angular/upgrade/bundles/upgrade-static.umd.js',
16+
// angular minimized umd bundles
17+
'@angular/core': 'npm:@angular/core/bundles/core.umd.min.js',
18+
'@angular/common': 'npm:@angular/common/bundles/common.umd.min.js',
19+
'@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.min.js',
20+
'@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.min.js',
21+
'@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.min.js',
22+
'@angular/http': 'npm:@angular/http/bundles/http.umd.min.js',
23+
'@angular/router': 'npm:@angular/router/bundles/router.umd.min.js',
24+
'@angular/router/upgrade': 'npm:@angular/router/bundles/router-upgrade.umd.min.js',
25+
'@angular/forms': 'npm:@angular/forms/bundles/forms.umd.min.js',
26+
'@angular/upgrade': 'npm:@angular/upgrade/bundles/upgrade.umd.min.js',
27+
'@angular/upgrade/static': 'npm:@angular/upgrade/bundles/upgrade-static.umd.min.js',
3028

3129
// other libraries
3230
'rxjs': 'npm:rxjs@5.0.1',

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
"intro": "Learn how to use Ahead-of-time compilation"
1111
},
1212

13-
"production-deploy": {
14-
"title": "Production Deploy",
15-
"intro": "Learn how to deploy your Angular app to production"
16-
},
17-
1813
"a1-a2-quick-reference": {
1914
"title": "Angular 1 to 2 Quick Reference",
2015
"navTitle": "Angular 1 to 2 Quick Ref",

0 commit comments

Comments
 (0)