import {bootstrap} from 'angular2/platform/browser';
import {AppComponent} from './app';
bootstrap(AppComponent).catch(err => console.error(err));
/*
copyright 2016 Google Inc. All Rights Reserved.
Use of this source code is governed by an MIT-style license that
can be found in the LICENSE file at http://angular.io/license
*/
import {bootstrap} from 'angular2/platform/browser';
import {ROUTER_PROVIDERS} from 'angular2/router';
import {AppComponent} from './app';
// Add these symbols to override the `LocationStrategy`
//import {provide} from 'angular2/core';
//import {LocationStrategy,// HashLocationStrategy} from 'angular2/router';
bootstrap(AppComponent,[ROUTER_PROVIDERS,//provide(LocationStrategy,// {useClass: HashLocationStrategy}) // .../#/crisis-center/
]);
/*
copyright 2016 Google Inc. All Rights Reserved.
Use of this source code is governed by an MIT-style license that
can be found in the LICENSE file at http://angular.io/license
*/
<!DOCTYPE html>
<html>
<head>
<title>Angular 2 Demo</title>
<Meta name="viewport" content="width=device-width,initial-scale=1">
<!-- IE required polyfills,in this exact order -->
<script src="lib/es6-shim.min.js"></script>
<script src="lib/system-polyfills.js"></script>
<script src="lib/shims_for_IE.js"></script>
<script src="lib/angular2-polyfills.js"></script>
<script src="lib/system.js"></script>
<script src="lib/typescript.js"></script>
<script src="lib/Rx.js"></script>
<script src="lib/angular2.dev.js"></script>
<script>
System.config({
transpiler: 'typescript',typescriptOptions: { emitDecoratorMetadata: true },packages: {'app': {defaultExtension: 'ts'}}
});
System.import('app/main')
.then(null,console.error.bind(console));
</script>
</head>
<body>
<my-app>Loading...</my-app>
</body>
</html>
<!--
copyright 2016 Google Inc. All Rights Reserved.
Use of this source code is governed by an MIT-style license that
can be found in the LICENSE file at http://angular.io/license
-->
<!DOCTYPE html>
<html>
<head>
<!-- Set the base href -->
<script>document.write('<base href="' + document.location + '" />');</script>
<Meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="styles.css">
<!-- IE required polyfills,in this exact order -->
<script src="lib/es6-shim.min.js"></script>
<script src="lib/system-polyfills.js"></script>
<script src="lib/shims_for_IE.js"></script>
<script src="lib/angular2-polyfills.js"></script>
<script src="lib/system.js"></script>
<script src="lib/typescript.js"></script>
<script src="lib/Rx.js"></script>
<script src="lib/angular2.dev.js"></script>
<!-- Add the router library -->
<script src="lib/router.dev.js"></script>
<script>
System.config({
transpiler: 'typescript',packages: {'app': {defaultExtension: 'ts'}}
});
System.import('app/main')
.then(null,console.error.bind(console));
</script>
</head>
<body>
<my-app>loading...</my-app>
</body>
</html>
<!--
copyright 2016 Google Inc. All Rights Reserved.
Use of this source code is governed by an MIT-style license that
can be found in the LICENSE file at http://angular.io/license
-->