Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
Krasimir Tsonev committed Jan 13, 2017
1 parent e3c9983 commit 5c44d66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -15,7 +15,9 @@ Via npm with `npm install navigo` or drop `lib/navigo.min.js` into your page.
### Initialization

```js
var router = new Navigo(root = null, useHash=false);
var root = null;
var useHash = false;
var router = new Navigo(root, useHash);
```

The constructor of the library accepts two argument - `root` and `useHash`. The first one is the main URL of your application. If you call the constructor without parameters then Navigo figures out the root URL based on your routes.
Expand Down

0 comments on commit 5c44d66

Please sign in to comment.