2
Fork 0

Added context path support and fixed some bugs

This commit is contained in:
Willem 2016-04-20 18:15:23 +02:00
parent b09a5f0906
commit 5d4ea33012
5 changed files with 89 additions and 21 deletions

View file

@ -3,17 +3,19 @@
<head>
<meta charset="UTF-8"/>
<title>Loading</title>
<link id="ffCleanupCss" rel="stylesheet" type="text/css" href="/static/spa-loader.css" />
<script id="ffCleanupScript"><%- inlineScript %></script>
<style id="ffCleanupStyle"><%- inlineStyle %></style>
</head>
<body>
<script id="ffCleanupScript"><%- inlineScript %></script>
<script id="ffCleanupConfig">
FFSpaLoader.options.debug.enable = true;
FFSpaLoader.options.boot.angular.modules.push('exampleUI');
FFSpaLoader.options.boot.cleanup.tags.push('ffCleanupCss');
FFSpaLoader.options.boot.cleanup.tags.push('ffCleanupStyle');
FFSpaLoader.options.boot.cleanup.tags.push('ffCleanupScript');
FFSpaLoader.options.boot.cleanup.tags.push('ffCleanupConfig');
FFSpaLoader.options.server.url = window.location.href;
FFSpaLoader.options.server.assets = '/static/spa-client-resources';
FFSpaLoader.options.server.depath = 'example-ui';
FFSpaLoader.options.server.header.response['X-My-Api'] = 'noknok';
FFSpaLoader.start();
</script>