Created
October 27, 2014 23:52
-
-
Save dankins/8de8d35bb556f9b9d9a2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <!doctype html> | |
| <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"/> | |
| <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