Skip to content

Instantly share code, notes, and snippets.

@alexciesielski
Created June 1, 2016 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexciesielski/db8fca8e033010c4f831c08cdc291b68 to your computer and use it in GitHub Desktop.
Save alexciesielski/db8fca8e033010c4f831c08cdc291b68 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Angular 2 App</title>
<base href="/"> {{content-for 'head'}}
<link rel="icon" type="image/x-icon" href="favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Font Awesome 605+ icons -->
<!-- TODO download and put into /app/styles/ -->
<script src="https://use.fontawesome.com/....js"></script>
<!-- Bootstrap 4 Alpha 2 -->
<link href="app/styles/bootstrap.min.css" rel="stylesheet">
<!-- Service worker support is disabled by default.
Install the worker script and uncomment to enable.
Only enable service workers in production.
<script type="text/javascript">
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/worker.js').catch(function(err) {
console.log('Error installing service worker: ', err);
});
}
</script>
-->
</head>
<body>
<webapp-app>
<div class="loading-screen" style="height: 100vh; display:flex; flex-direction: column; justify-content: center; align-items: center">
<i class="text-primary fa fa-spin fa-circle-o-notch fa-5x" aria-hidden="true"></i>
</div>
</webapp-app>
<script src="https://www.gstatic.com/firebasejs/live/3.0/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "...",
authDomain: "....firebaseapp.com",
databaseURL: "https://....firebaseio.com",
storageBucket: "....appspot.com",
};
firebase.initializeApp(config);
</script>
<script src="vendor/es6-shim/es6-shim.js"></script>
<script src="vendor/reflect-metadata/Reflect.js"></script>
<script src="vendor/systemjs/dist/system.src.js"></script>
<script src="vendor/zone.js/dist/zone.js"></script>
<script async defer src="https://maps.googleapis.com/maps/api/js?libraries=places"></script>
<script src="vendor/ng2-bootstrap/bundles/ng2-bootstrap.js"></script>
<script>
System.import('system-config.js').then(function () {
System.import('main');
}).catch(console.error.bind(console));
</script>
</body>
</html>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Angular 2 App</title>
<base href="/"> {{content-for 'head'}}
<link rel="icon" type="image/x-icon" href="favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Font Awesome 605+ icons -->
<!-- TODO download and put into /app/styles/ -->
<script src="https://use.fontawesome.com/....js"></script>
<!-- Bootstrap 4 Alpha 2 -->
<link href="app/styles/bootstrap.min.css" rel="stylesheet">
<!-- Service worker support is disabled by default.
Install the worker script and uncomment to enable.
Only enable service workers in production.
<script type="text/javascript">
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/worker.js').catch(function(err) {
console.log('Error installing service worker: ', err);
});
}
</script>
-->
</head>
<body>
<webapp-app>
<div class="loading-screen" style="height: 100vh; display:flex; flex-direction: column; justify-content: center; align-items: center">
<i class="text-primary fa fa-spin fa-circle-o-notch fa-5x" aria-hidden="true"></i>
</div>
</webapp-app>
<script src="vendor/es6-shim/es6-shim.js"></script>
<script src="vendor/reflect-metadata/Reflect.js"></script>
<script src="vendor/systemjs/dist/system.src.js"></script>
<script src="vendor/zone.js/dist/zone.js"></script>
<script async defer src="https://maps.googleapis.com/maps/api/js?libraries=places"></script>
<script src="vendor/ng2-bootstrap/bundles/ng2-bootstrap.js"></script>
<script src="https://www.gstatic.com/firebasejs/live/3.0/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "...",
authDomain: "....firebaseapp.com",
databaseURL: "https://....firebaseio.com",
storageBucket: "....appspot.com",
};
firebase.initializeApp(config);
</script>
<script>
System.import('system-config.js').then(function () {
System.import('main');
}).catch(console.error.bind(console));
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment