Skip to content

Commit

Permalink
add dom-bind to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
e111077 committed Jul 26, 2018
1 parent c189efd commit 5a6588e
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions README.md
Expand Up @@ -24,23 +24,28 @@ npm install --save @polymer/app-route
<html>
<head>
<script type="module">
import '@polymer/polymer/lib/elements/dom-bind.js';
import '@polymer/app-route/app-location.js';
import '@polymer/app-route/app-route.js';
</script>
</head>
<body>
<app-location route="{{route}}"></app-location>
<app-route
route="{{route}}"
pattern="/:page"
data="{{routeData}}"
tail="{{subroute}}">
</app-route>
<app-route
route="{{subroute}}"
pattern="/:id"
data="{{subrouteData}}">
</app-route>
<dom-bind>
<template>
<app-location route="{{route}}"></app-location>
<app-route
route="{{route}}"
pattern="/:page"
data="{{routeData}}"
tail="{{subroute}}">
</app-route>
<app-route
route="{{subroute}}"
pattern="/:id"
data="{{subrouteData}}">
</app-route>
</template>
</dom-bind>
</body>
</html>
```
Expand Down

0 comments on commit 5a6588e

Please sign in to comment.