Skip to content

Commit

Permalink
fix markdown code snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherjbaker committed Feb 15, 2018
1 parent aca3bbe commit cd11865
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions doc/can-route.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@
data, // The bound observable.
register, // Register routes that translate between
// the url and the bound observable.
start // Begin updating the bound observable with
start, // Begin updating the bound observable with
// url data and vice versa.

deparam, // Given url fragment, return the data for it.
rule, // Given url fragment, return the routing rule

param, // Given data, return a url fragment.
url, // Given data, return a url for it.
link // Given data, return an <a> tag for it.
link, // Given data, return an <a> tag for it.

isCurrent, // Given data, return true if the current url matches
// the data.
currentRule // Return the matched rule name.
isCurrent, // Given data, return true if the current url matches
// the data.
currentRule, // Return the matched rule name.
}
```

Expand Down
4 changes: 2 additions & 2 deletions doc/data.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import route from "can-route";
Component.extend({
tag: "my-app",
autoMount: true,
ViewModel: ...,
view: ...
ViewModel: { ... },
view: { ... }
})

route.data = document.querySelector("my-app");
Expand Down

0 comments on commit cd11865

Please sign in to comment.