feat(web): Implement view container and update elements
This commit is contained in:
+7
-1
@@ -2,6 +2,7 @@ import * as serviceworker from '@api.global/typedserver/web_serviceworker_client
|
||||
import * as domtools from '@design.estate/dees-domtools';
|
||||
|
||||
import { html, render } from '@design.estate/dees-element';
|
||||
import { IdpViewcontainer } from './views/index.js';
|
||||
import { IdpWelcome } from './elements/idp-welcome.js';
|
||||
|
||||
const run = async () => {
|
||||
@@ -52,10 +53,15 @@ const run = async () => {
|
||||
--background-accent: #303f9f;
|
||||
}
|
||||
</style>
|
||||
<idp-welcome></idp-welcome>
|
||||
<idp-viewcontainer></idp-viewcontainer>
|
||||
`;
|
||||
|
||||
|
||||
render(mainTemplate, document.body);
|
||||
const viewContainer: IdpViewcontainer = document.querySelector('idp-viewcontainer');
|
||||
viewContainer.loadElement(IdpWelcome);
|
||||
|
||||
|
||||
};
|
||||
|
||||
run();
|
||||
|
||||
Reference in New Issue
Block a user