Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

02 01b #12

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ typings
app/**/*.js
app/**/*.js.map
npm-debug.log*
.DS_store
.DS_store
.idea
8 changes: 6 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
// Place your settings in this file to overwrite default and user settings.
{
"editor.wrappingColumn": 0,
"files.exclude": {
"editor.tabSize": 2,
"editor.insertSpaces": true,
"files.exclude": {
"**/.idea": {},
"**/node_modules": {},
"npm-debug.log*": {},
"typings": {},
"app/**/*.js": {},
"**/*.map": {},
"**/*.js": {
"when": "$(basename).ts"
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ Topics include:

`npm start`

The repository has a branch for each video starting point. For example, the branch **02-01b** is used as the starting code for the video *02-01 NgModule and the root module*. You can checkout branches using `git checkout <branchname>` and not have to re-run `npm install` each time since you will remain in the same root folder.

Note that the site will run using `lite-server` and will be served up at the following local address:
http://localhost:3000

Expand Down
File renamed without changes.
Empty file removed app/main.ts
Empty file.
36 changes: 18 additions & 18 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
<html>

<head>
<title>MeWL</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="node_modules/core-js/client/shim.min.js"></script>
<script src="node_modules/zone.js/dist/zone.js"></script>
<script src="node_modules/reflect-metadata/Reflect.js"></script>
<script src="node_modules/systemjs/dist/system.src.js"></script>
<script src="systemjs.config.js"></script>
<link href="resets.css" rel="stylesheet">
<style>
body {
margin: 0px;
padding: 0px;
background-color: #32435b;
}
</style>
<script>
<title>MeWL</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="node_modules/core-js/client/shim.min.js"></script>
<script src="node_modules/zone.js/dist/zone.js"></script>
<script src="node_modules/reflect-metadata/Reflect.js"></script>
<script src="node_modules/systemjs/dist/system.src.js"></script>
<script src="systemjs.config.js"></script>
<link href="resets.css" rel="stylesheet">
<style>
body {
margin: 0px;
padding: 0px;
background-color: #32435b;
}
</style>
<script>
System.import('app').catch(function(err){ console.error(err); });
</script>
</head>

<body>
<app>Loading...</app>
<app>Loading...</app>
</body>

</html>
Binary file added media/01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
78 changes: 40 additions & 38 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,41 @@
{
"name": "angular2-essential-training",
"version": "1.0.0",
"author": "Justin Schwartzenberger",
"description": "This project is the repository for my Angular 2 Essential Training course on Lynda.com.",
"repository": {
"type": "git",
"url": "https://github.com/LyndaExerciseFiles/angular2-essential-training.git"
},
"scripts": {
"postinstall": "npm run typings install",
"tsc": "tsc",
"tsc:w": "tsc -w",
"lite": "lite-server",
"start": "tsc && concurrently \"tsc -w\" \"lite-server\" ",
"typings": "typings"
},
"dependencies": {
"@angular/common": "2.0.0-rc.4",
"@angular/compiler": "2.0.0-rc.4",
"@angular/core": "2.0.0-rc.4",
"@angular/forms": "0.2.0",
"@angular/http": "2.0.0-rc.4",
"@angular/platform-browser": "2.0.0-rc.4",
"@angular/platform-browser-dynamic": "2.0.0-rc.4",
"@angular/router": "3.0.0-beta.2",
"systemjs": "0.19.27",
"core-js": "^2.4.0",
"reflect-metadata": "^0.1.3",
"rxjs": "5.0.0-beta.6",
"zone.js": "^0.6.12"
},
"devDependencies": {
"concurrently": "^2.2.0",
"lite-server": "^2.2.0",
"typescript": "^1.8.10",
"typings": "^1.0.4"
}
}
"name": "angular2-essential-training",
"version": "1.0.0",
"author": "Justin Schwartzenberger",
"description": "This project is the repository for my Angular 2 Essential Training course on Lynda.com.",
"repository": {
"type": "git",
"url": "https://github.com/LyndaExerciseFiles/angular2-essential-training.git"
},
"scripts": {
"clean": "rimraf app/**/*.js app/**/*.js.map",
"tsc": "tsc",
"tsc:w": "tsc -w",
"lite": "lite-server",
"prestart": "npm run clean",
"start": "tsc && concurrently \"tsc -w\" \"lite-server\" "
},
"dependencies": {
"@angular/common": "2.0.0",
"@angular/compiler": "2.0.0",
"@angular/core": "2.0.0",
"@angular/forms": "2.0.0",
"@angular/http": "2.0.0",
"@angular/platform-browser": "2.0.0",
"@angular/platform-browser-dynamic": "2.0.0",
"@angular/router": "3.0.0",
"systemjs": "0.19.27",
"core-js": "2.4.1",
"reflect-metadata": "0.1.3",
"rxjs": "5.0.0-beta.12",
"zone.js": "0.6.23"
},
"devDependencies": {
"@types/core-js": "^0.9.34",
"@types/node": "^6.0.41",
"concurrently": "2.2.0",
"lite-server": "2.2.2",
"rimraf": "2.5.4",
"typescript": "2.0.2"
}
}
10 changes: 10 additions & 0 deletions sample.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var categories = [];
mediaItems.forEach(mediaItem => {
if (categories.indexOf(mediaItem.category) <= -1) {
categories.push(mediaItem.category);
}
});
return categories.join(', ');


[\\w\\-\\s\\/]+
16 changes: 8 additions & 8 deletions systemjs.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
*/
(function(global) {
(function (global) {

// map tells the System loader where to look for things
var map = {
'app': 'app', // 'dist',
'app': 'app', // 'dist',

'@angular': 'node_modules/@angular',
'rxjs': 'node_modules/rxjs'
'@angular': 'node_modules/@angular',
'rxjs': 'node_modules/rxjs'
};

// packages tells the System loader how to load when no filename and/or no extension
var packages = {
'app': { main: 'main.js', defaultExtension: 'js' },
'rxjs': { defaultExtension: 'js' }
'app': { main: 'main.js', defaultExtension: 'js' },
'rxjs': { defaultExtension: 'js' }
};

var ngPackageNames = [
Expand All @@ -31,12 +31,12 @@

// Individual files (~300 requests):
function packIndex(pkgName) {
packages['@angular/'+pkgName] = { main: 'index.js', defaultExtension: 'js' };
packages['@angular/' + pkgName] = { main: 'index.js', defaultExtension: 'js' };
}

// Bundled (~40 requests):
function packUmd(pkgName) {
packages['@angular/'+pkgName] = { main: '/bundles/' + pkgName + '.umd.js', defaultExtension: 'js' };
packages['@angular/' + pkgName] = { main: '/bundles/' + pkgName + '.umd.js', defaultExtension: 'js' };
}

// Most environments should use UMD; some (Karma) need the individual index files
Expand Down
6 changes: 0 additions & 6 deletions typings.json

This file was deleted.