Skip to content

Commit 8e26b8c

Browse files
authored
Merge pull request #114 from canjs/fixed-code-in-description
Removed code from description which caused broken links
2 parents 2b7e4c0 + 0fac729 commit 8e26b8c

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

can-route-pushstate.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,6 @@ of the [hash](https://developer.mozilla.org/en-US/docs/Web/API/URLUtils.hash)
1515

1616
@type {Object} The pushstate object comprises several properties that configure the behavior of [can-route] to work with `history.pushstate`.
1717

18-
```js
19-
import { route, RoutePushstate } from "can";
20-
21-
route.urlData = new RoutePushstate();
22-
route.register( "{page}", { page: "home" } );
23-
route.start();
24-
25-
route.data.set("page", "user");
26-
27-
location.pathname; // -> "/user"
28-
```
29-
3018
@body
3119

3220
## Use

0 commit comments

Comments
 (0)