vanilla-ui-router
Advanced tools
Comparing version 1.1.1 to 1.1.2
import {loadTemplate} from './dataProvider'; | ||
export const renderTemplates = (routeConfiguration, domEntryPoint) => { | ||
export const renderTemplates = (routeConfiguration, domEntryPoint, successCallback) => { | ||
if (!routeConfiguration) { | ||
@@ -10,2 +10,3 @@ return; | ||
domEntryPoint.innerHTML = routeConfiguration.templateString; | ||
successCallback(); | ||
} | ||
@@ -16,2 +17,3 @@ | ||
domEntryPoint.innerHTML = templateString; | ||
successCallback(); | ||
}); | ||
@@ -23,3 +25,4 @@ } | ||
domEntryPoint.innerHTML = templateScript.text; | ||
successCallback(); | ||
} | ||
}; |
@@ -69,7 +69,8 @@ import { | ||
renderTemplates(routeHandler, domEntryPoint); | ||
renderTemplates(routeHandler, domEntryPoint, () => { | ||
if (typeof routeHandler.routeHandler === 'function') { | ||
routeHandler.routeHandler(domEntryPoint, routeParams); | ||
} | ||
}); | ||
if (typeof routeHandler.routeHandler === 'function') { | ||
routeHandler.routeHandler(domEntryPoint, routeParams); | ||
} | ||
} | ||
@@ -76,0 +77,0 @@ }; |
{ | ||
"name": "vanilla-ui-router", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Simple vanilla JavaScript router", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/micromata/vanilla-ui-router", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26823
283