From 2faba85b841dd4d26542cf58e61b31ac2d54af93 Mon Sep 17 00:00:00 2001 From: Irina Shestak Date: Thu, 13 Apr 2017 15:41:09 +0100 Subject: [PATCH] describe dat data-no-routing attr (#474) --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 0f9f306..532252d 100644 --- a/README.md +++ b/README.md @@ -282,6 +282,10 @@ By default we also catch and match all `` clicks against the router. This can be disabled by setting `opts.href` to `false` in the constructor. Routing via `pushState` will not work until the `DOMContentLoaded` event has been fired. +If you need choo to ignore a particular route, you can add `data-no-routing` +attribute with ``. This is especially useful for +directing outside the choo app. + Querystrings (`?foo=bar`) are ignored when matching routes. They should be extracted from the `window.location` object on render events, from either a custom event listener or the matched views.