Skip to content

Instantly share code, notes, and snippets.

@dankins
Created October 27, 2014 20:46
Show Gist options
  • Select an option

  • Save dankins/dd63a2b600d2876044cd to your computer and use it in GitHub Desktop.

Select an option

Save dankins/dd63a2b600d2876044cd to your computer and use it in GitHub Desktop.
Test
<html>
<head>
<title>Surf Router Demo</title>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<script src="../platform/platform.js"></script>
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="surf-router.html"/>
<link rel="import" href="demo/themes.html"/>
<polymer-element name="surf-router-demo">
<template>
<surf-router routes="{{routes}}"></surf-router>
</template>
<script>
Polymer({
routes: {
url: "#",
container: "app-body",
imports: "demo/app-body.html",
default: "home",
children: {
home: {
url: "",
container: "app-home",
imports: "demo/main/app-home.html"
}
}
});
</script>
</polymer-element>
</head>
<body>
<surf-router-demo></surf-router-demo>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment