-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2408399
commit e6f2f67
Showing
11 changed files
with
117 additions
and
63 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import {bootstrap} from 'angular2/platform/browser'; | ||
import {bootstrap} from '@angular/platform-browser-dynamic'; | ||
import {NotesComponent} from './notes/notes.component'; | ||
|
||
bootstrap(NotesComponent); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,42 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>Angular 2 Notes App</title> | ||
<meta charset="UTF-8"> | ||
<title>Angular2 Notes App</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="icon" href="favicon.ico"> | ||
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css"> | ||
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap-theme.css"> | ||
<script src="node_modules/angular2/bundles/angular2-polyfills.js"></script> | ||
|
||
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.css"> | ||
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap-theme.css"> | ||
|
||
<!-- 1. Load libraries --> | ||
<!-- Polyfill(s) for older browsers --> | ||
<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="node_modules/rxjs/bundles/Rx.js"></script> | ||
<script src="node_modules/angular2/bundles/angular2.dev.js"></script> | ||
|
||
<!-- 2. Configure SystemJS --> | ||
<script src="systemjs.config.js"></script> | ||
<script> | ||
System.import('app').catch(function(err){ console.error(err); }); | ||
</script> | ||
|
||
<script> | ||
System.config({ | ||
transpiler: 'typescript', | ||
typescriptOptions: { emitDecoratorMetadata: true}, | ||
typescriptOptions: {emitDecoratorMetadata: true}, | ||
map: {typescript: 'node_modules/typescript/lib/typescript.js'}, | ||
packages: { | ||
'src' : { | ||
'src': { | ||
defaultExtension: 'ts' | ||
} | ||
} | ||
}); | ||
System.import('src/components/boot').then(null, console.error.bind(console)); | ||
</script> | ||
</head> | ||
<body> | ||
<notes-app>Loading...</notes-app> | ||
<notes-app>Loading...</notes-app> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
(function (global) { | ||
|
||
// map tells the System loader where to look for things | ||
var map = { | ||
'app': 'app', // 'dist', | ||
'@angular': 'node_modules/@angular', | ||
'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api', | ||
'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'}, | ||
'angular2-in-memory-web-api': {main: 'index.js', defaultExtension: 'js'} | ||
}; | ||
|
||
var ngPackageNames = [ | ||
'common', | ||
'compiler', | ||
'core', | ||
'forms', | ||
'http', | ||
'platform-browser', | ||
'platform-browser-dynamic', | ||
'router', | ||
'router-deprecated', | ||
'upgrade' | ||
]; | ||
|
||
// Individual files (~300 requests): | ||
function packIndex(pkgName) { | ||
packages['@angular/' + pkgName] = {main: 'index.js', defaultExtension: 'js'}; | ||
} | ||
|
||
// Bundled (~40 requests): | ||
function packUmd(pkgName) { | ||
packages['@angular/' + pkgName] = {main: '/bundles/' + pkgName + '.umd.js', defaultExtension: 'js'}; | ||
} | ||
|
||
// Most environments should use UMD; some (Karma) need the individual index files | ||
var setPackageConfig = System.packageWithIndex ? packIndex : packUmd; | ||
|
||
// Add package entries for angular packages | ||
ngPackageNames.forEach(setPackageConfig); | ||
|
||
var config = { | ||
map: map, | ||
packages: packages | ||
}; | ||
|
||
System.config(config); | ||
|
||
})(this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "system", | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"sourceMap": false, | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"removeComments": false, | ||
"noImplicitAny": false | ||
}, | ||
"exclude": [ | ||
"node_modules" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"globalDependencies": { | ||
"core-js": "registry:dt/core-js#0.0.0+20160602141332", | ||
"jasmine": "registry:dt/jasmine#2.2.0+20160621224255", | ||
"node": "registry:dt/node#6.0.0+20160621231320" | ||
} | ||
} |