Skip to content

Commit

Permalink
updating documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
muzammilkm committed Dec 5, 2018
1 parent 98efa78 commit 92dee3d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,18 @@ $.when($.ready)
* On Initial load, Navigate to a route.

### Events
There are about 6 events, you can listen to these events or subscribe to events via router.
There are about 6 events, you can listen to these events or subscribe to events via router. Events are triggered in the following order.

#### Event Trigger Order
If Route Matched:
```javascript
onRouteMatched -> onRouteBeforeChange -> onViewDestroyed -> onViewChange -> onRouteChanged
```

If Route Not Matched:
```javascript
onRouteNotMatched
```

##### This event is trigged when view is loaded in to dom & either controller or viewmodel can be initiated.
* Window Event
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"bugs": {
"url": "https://github.com/muzammilkm/jq-router/issues"
},
"homepage": "https://github.com/muzammilkm/jq-router#readme",
"homepage": "https://muzammilkm.github.io/jq-router",
"dependencies": {
"gulp": "^3.9.1",
"jquery": "^3.2.1"
Expand Down

0 comments on commit 92dee3d

Please sign in to comment.