mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
63 lines
2.2 KiB
HTML
63 lines
2.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Angular 2 Viewer - Demo</title>
|
|
<base href="/">
|
|
|
|
<!-- Google Material Design Lite -->
|
|
<link rel="stylesheet" href="node_modules/material-design-lite/material.min.css">
|
|
<script src="node_modules/material-design-lite/material.min.js"></script>
|
|
<link rel="stylesheet" href="node_modules/material-design-icons/iconfont/material-icons.css">
|
|
|
|
<!-- 1. Load libraries -->
|
|
<!-- IE required polyfills, in this exact order -->
|
|
<script src="node_modules/es6-shim/es6-shim.min.js"></script>
|
|
<script src="node_modules/systemjs/dist/system-polyfills.js"></script>
|
|
<script src="node_modules/angular2/es6/dev/src/testing/shims_for_IE.js"></script>
|
|
<script src="node_modules/angular2/bundles/angular2-polyfills.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>
|
|
<script src="node_modules/angular2/bundles/router.dev.js"></script>
|
|
<script src="node_modules/angular2/bundles/http.dev.js"></script>
|
|
|
|
<script src="node_modules/pdfjs-dist/build/pdf.js"></script>
|
|
<script src="node_modules/pdfjs-dist/build/pdf.worker.js"></script>
|
|
<script src="node_modules/pdfjs-dist/web/pdf_viewer.js"></script>
|
|
|
|
<script>
|
|
System.config({
|
|
defaultJSExtensions: true,
|
|
map: {
|
|
'ng2-alfresco-viewer': 'node_modules/ng2-alfresco-viewer',
|
|
'rxjs': 'node_modules/rxjs',
|
|
'angular2': 'node_modules/angular2',
|
|
'app': 'dist/main'
|
|
},
|
|
packages: {
|
|
'src': {
|
|
defaultExtension: 'js'
|
|
},
|
|
'ng2-alfresco-viewer': {
|
|
defaultExtension: 'js'
|
|
},
|
|
'rxjs': {
|
|
defaultExtension: 'js'
|
|
},
|
|
'angular2': {
|
|
defaultExtension: 'js'
|
|
}
|
|
}
|
|
});
|
|
System.import('app').catch(console.log.bind(console));
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<my-app></my-app>
|
|
|
|
</body>
|
|
</html>
|