RSS Git Download  Clone
Raw Blame History 429B 18 lines
let bootstrapHtml
module.exports = () => {
    global.p3xr.destroy()

    if (bootstrapHtml === undefined) {
        bootstrapHtml = document.body.innerHTML
    } else {
        document.body.innerHTML = bootstrapHtml
    }

    angular.element(document).ready(() => {
        const bootstrapElement = document.getElementById('p3xr-redis-ui-bootstrap');
        angular.bootstrap(bootstrapElement, ['p3xr-redis-ui']);
    })

}