Created
March 7, 2018 19:28
-
-
Save filipbech/15971f35768b5b92e263a662a930e412 to your computer and use it in GitHub Desktop.
element-router
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<element-router> | |
<element-route path="/" element="home-page"></element-route> | |
<element-route path="/product/:uid" element="product-page"></element-route> | |
<element-route path="/lazy" import="lazy-element.js" element="lazy-element"></element-route> | |
<element-route path="/no-element"> | |
<template> | |
<style>h1 { color:red; }</style> | |
<h1>Yo this is an inline-template</h1> | |
</template> | |
</element-route> | |
<element-route path="*" redirect="/"></element-route> | |
</element-router> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment