diff --git a/ignite-html-router.js b/ignite-html-router.js index 00c08e6..474b813 100644 --- a/ignite-html-router.js +++ b/ignite-html-router.js @@ -19,6 +19,9 @@ IgniteTemplate.prototype.route = function(routes, showCallback = null, hideCallb routes = [routes]; } + //By default hide this route. + this.element.style.setProperty("display", "none", "important"); + //Create an update method that will be used to check and see if the route is met. var update = (event) => { var routeMatches = false;