Files
node-template-express/public/js-source/index.ts
Sebastian Seedorf 37c34f99ac Bug fixes
2020-11-16 17:50:08 +01:00

11 lines
384 B
TypeScript

// Export setConfig so that the external url can set set automatically by the server
export {setConfig} from './utils/utils';
import {getUserName} from './SomeModule';
getUserName().then((name) => {
const node = document.createElement('span');
node.innerText = `This user name is fetched with Javascript: ${name}`;
document.getElementsByTagName("body")[0].appendChild(node);
});