Pierre-Yves Gérardy
0a1c634d99
Clarify m.route.params in RouteResolver.onmatch
2017-05-04 16:05:39 +02:00
Yuri
a560bca85d
Improve the documentation of routing parameters
...
I was stuck on this for a while earlier today: it turns out that `m.route.param` will not return the right results in the `onmatch` function on a `RouterResolver`, though it will inside of a `render` function on the same. This behavior is documented in the `onmatch` section but not the `m.route.param` section, which is where I was looking when I ran up against this earlier.
From an API design perspective it would make sense to me for `m.route.param` to return valid results inside `onmatch`, but I don't know enough about Mithril's internals to know how complex it would be to implement.
2017-05-03 21:21:57 -04:00
David
e26e1f10c0
docs: URL Param + Variadic route doc ( #1813 )
2017-04-26 09:34:28 -07:00
Pierre-Yves Gérardy
c08b3f3c20
docs: more m.route docs fixes ( #1712 )
2017-03-14 16:31:57 -07:00
Leo
1d48a30936
m.route.param docs #1711
2017-03-14 18:32:23 -04:00
Красимир Беров
72359a76e3
Remove an obsolete line ( #1681 )
2017-03-04 23:38:34 +01:00
spacejack
fc4d5f1892
resolver.render return type description consistent with m.render
2017-02-12 15:14:06 -05:00
spacejack
7e0a1db89f
API docs signature fixes for route resolver, jsonp, fragment
2017-02-11 21:31:10 -05:00
Yoshiki Shibukawa
c7e0b204f8
docs: Update route.md ( #1600 )
...
Fix typo
2017-02-07 23:02:39 -08:00
Leo Horie
24b7150b3c
tweaks in docs
2017-01-15 10:35:29 -05:00
Leo Horie
d397e66e03
lint links
2017-01-08 21:29:26 -05:00
Leo
d40b324645
doc fixes
2017-01-08 14:47:38 -05:00
Leo Horie
3bac29bf78
Clarify distinctions between RouteResolvers and components
2017-01-08 11:34:56 -05:00
Patrik Johnson
4c84eafbdd
Remove extra code from example that is not required, since it's confusingly similar to previous block
2017-01-05 15:08:43 +02:00
Leo Horie
dc72aaa35b
beef up the docs about differences between route resolvers and components
2016-12-20 11:15:10 -05:00
Leo Horie
de07a54881
add support for route state #1480
2016-12-17 21:50:04 -05:00
Leo Horie
55968edf34
make note in docs about m.route singletonness
2016-12-16 15:28:07 -05:00
Leo Horie
b9a479d45e
lint docs
2016-12-07 12:45:42 -05:00
Leo Horie
04b860cefc
refer to relevant section from onmatch docs
2016-12-07 11:18:54 -05:00
Leo Horie
549b773fea
Merge remote-tracking branch 'origin/rewrite' into rewrite
2016-12-07 10:10:08 -05:00
Leo Horie
ae916664de
tweaks to docs
2016-12-07 10:09:49 -05:00
John Long
30d130cc7a
Update route docs to reference state var
2016-12-07 07:57:32 -07:00
Leo Horie
f1f52445ec
more router fixes
2016-12-07 07:57:58 -05:00
Leo Horie
846d6ce24b
router fixes
2016-12-06 10:44:25 -05:00
Leo Horie
3fb160c12e
Merge remote-tracking branch 'origin/rewrite' into rewrite
...
# Conflicts:
# docs/route.md
2016-12-06 00:10:30 -05:00
Leo Horie
3134202d24
fix tests
2016-12-06 00:09:09 -05:00
Pat Cavit
4e9505335c
Fix TOC link, remove m.request.run ref ( #1456 )
2016-12-05 11:41:20 -08:00
Leo Horie
cdb9017a72
update docs, add descriptions for api methods
2016-12-02 17:51:07 -05:00
Leo Horie
87dcbbf5c7
small tweaks to docs
2016-12-01 01:49:19 -05:00
Leo Horie
f49fd1c6a2
Merge remote-tracking branch 'origin/rewrite' into rewrite
2016-10-03 10:56:47 -04:00
Leo Horie
d0a4993681
clean up
2016-10-03 10:56:44 -04:00
Hugo Freitas
45ebf2f2db
Fix RouteResolver link
2016-09-29 12:45:12 -03:00
Pierre-Yves Gérardy
67433a7816
Correct the RouteResolver.onmatch() signature ( #1327 )
2016-09-20 19:44:19 -07:00
Leo Horie
55f0dfa4dd
Merge remote-tracking branch 'origin/rewrite' into rewrite
...
Conflicts:
docs/route.md
2016-09-12 09:48:30 -04:00
Leo Horie
8492e0c733
route docs tweak
2016-09-12 09:47:45 -04:00
Pierre-Yves Gérardy
837c92349b
docs/route.md: fix inner links ( #1302 )
2016-09-08 11:48:29 -07:00
Pierre-Yves Gerardy
2e6a2ae5d9
Docs for the #1276 fix
2016-09-02 22:05:58 +02:00
jethroscott
5e604a8241
fix typo in RouteResolver description
2016-08-24 15:25:12 -07:00
Leo Horie
a1a087c4be
fix code splitting example
2016-08-24 10:47:45 -04:00
Leo Horie
dee15a64e3
doc improvements
2016-08-24 10:46:44 -04:00
Leo Horie
53a83a58f2
rename RouteResolver::view back to render to restore diff semantics
...
prevent double resolving
2016-08-23 22:33:18 -04:00
Leo Horie
8c9cc0e1f4
lint docs
2016-08-17 09:09:45 -04:00
Sebastian Sandqvist
17719098f2
Update route.md docs
...
Table formatting was broken, and the code example had `use` instead of `resolve`.
Wasn't sure about the `required` column, so it's blank for now.
2016-08-17 00:07:50 -07:00
Leo Horie
80c25e3809
rename routeresolver methods to {onmatch,view}
...
expose some piecemeal modules
rename internal xhr to request
mirror internal stream api to match public api
2016-08-17 00:10:47 -04:00
Leo Horie
7bb8ded6cb
some docs for router
2016-08-12 23:56:29 -04:00