PHP Classes

File: assets/js/app.js

Recommend this page to a friend!
  Classes of Rodrigo Faustino   App MFE   assets/js/app.js   Download  
File: assets/js/app.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: App MFE
Single-page application with micro-frontends
Author: By
Last change:
Date: 1 month ago
Size: 348 bytes
 

Contents

Class file image Download
import Router from './router.js'; class App { constructor() { this.router = new Router(this); this.init(); } async init() { const nav = document.getElementById("nav"); nav.innerHTML = this.router.render(); this.router.afterRender(); this.router.init(); } } const app = new App();