Henrik Myntti
c32d508de1
Improve keys example
...
The previous example about hiding keys had syntax errors, and example in itself didn't follow our own guidelines (key should be on immediate child of an array)
In the new example we reuse the code from the previous example but break out a User component (which is much more likely) and the example says to move the key from inside the user component instead
2017-03-30 18:46:42 +02:00
Pierre-Yves Gérardy
5c42e3dc22
Merge pull request #1756 from JAForbes/patch-1
...
Acknowledge multiple component creation strategies
2017-03-30 16:04:25 +02:00
James Forbes
6612cf6ebd
ES6 classes may require build tools.
...
Instead of saying they won't need build tools, we can say that we only use native features of the language which usually makes for a simpler project.
2017-03-30 12:09:17 +11:00
Stefan Thon
c904758f10
button[type=button] => button[type=submit]
...
I went through the tutorial.
button[type=button] was not working for me.
button[type=submit] did.
2017-03-29 11:14:43 +02:00
James Forbes
5e3b0adec3
Acknowledge multiple component creation strategies
2017-03-29 16:23:39 +11:00
Pat Cavit
7ba74ad424
docs: Fix missing generated docs ( #1754 )
2017-03-28 11:21:01 -07:00
Pat Cavit
87a053224c
docs: updated releasing workflow
2017-03-27 15:24:36 -07:00
Pierre-Yves Gérardy
a6bb1d4651
docs: update the toc of components.md to match the content ( #1748 )
2017-03-27 15:19:16 -07:00
Pat Cavit
5d9694cc2e
docs: remove fake change
2017-03-27 15:12:22 -07:00
Pat Cavit
d8627ca786
docs: correct version on change-log
2017-03-27 15:09:56 -07:00
Isiah Meadows
40637fe99f
Update components.md [ci skip]
2017-03-27 12:41:45 -04:00
Pierre-Yves Gerardy
f7450c96b0
Document closure components (formerly known as "factory components") and flesh out class components docs
2017-03-27 16:47:45 +02:00
Pierre-Yves Gerardy
2d2c53fcfc
Add some docs on undocumented vnode fields
2017-03-26 23:01:04 +02:00
Kelly Thomas Kline
fe5f92eb2e
Fix grammar
2017-03-25 11:44:59 -07:00
spacejack
f1b66745af
docs: stream scan and scanMerge ( #1719 )
2017-03-24 22:06:59 -07:00
Pat Cavit
4d928d4493
docs: use npm run release instead of npm version
2017-03-24 14:31:49 -07:00
Pat Cavit
ad144072b6
chore: automate github release pages ( #1741 )
2017-03-24 12:35:14 -07:00
Scotty Simpson
74125e42c7
m.prop() isn't a thing anymore
2017-03-23 08:39:49 -07:00
spacejack
5229b0bc93
docs: Fix extract siguature, clarify deserialize & extract descriptions. ( #1729 )
2017-03-21 10:59:44 -07:00
Pierre-Yves Gérardy
c08b3f3c20
docs: more m.route docs fixes ( #1712 )
2017-03-14 16:31:57 -07:00
Leo
78c139a201
Merge remote-tracking branch 'origin/next' into next
2017-03-14 18:32:42 -04:00
Leo
1d48a30936
m.route.param docs #1711
2017-03-14 18:32:23 -04:00
Ferhat Elmasgüneş
0ed3695f78
Fixes component usage.
...
Updates `m.mount(document.body, <MyComponent />)` to `m.render(document.body, <MyComponent />)`.
After consuming a component using `m(component)`, you can't *mount* it to element but you can *render*.
2017-03-12 15:34:01 +02:00
Isiah Meadows
934e0ac55e
Merge branch 'next' into strict-mode
2017-03-09 11:54:32 -05:00
Leo Horie
622bd6e165
Merge pull request #1689 from tivac/auto-publish
...
Docs auto-push to gh-pages branch
2017-03-09 09:43:26 -05:00
Pierre-Yves Gerardy
74cbd4c17b
Let render() create the state rather than vnode()
2017-03-08 22:19:27 +01:00
Pat Cavit
43f050ae44
Docs auto-push to gh-pages branch
2017-03-07 22:07:55 -08:00
Красимир Беров
72359a76e3
Remove an obsolete line ( #1681 )
2017-03-04 23:38:34 +01:00
Pierre-Yves Gérardy
485febd0cc
typo
2017-03-04 16:38:34 +01:00
Patrik Johnson
59ed3c7d48
Always expose stream on m.stream, use unpkg for docs ( #1535 )
...
... and document how streams are exposed in when loaded as <script> in global context
2017-03-04 16:27:02 +01:00
Isiah Meadows
d4a0417dde
Merge branch 'next' of https://github.com/lhorie/mithril.js into strict-mode
2017-03-03 18:27:24 -05:00
Isiah Meadows
1cc5fa5ba7
"use strict" and other linty fixes
2017-03-03 18:24:38 -05:00
Leo Horie
5a9d7201e3
Merge pull request #1659 from barneycarroll/patch-13
...
Warn about data models w key props passed as attrs
2017-03-02 20:04:14 -05:00
Barney Carroll
57d3de1e5c
Docs: component props aren't copied to instances
2017-02-26 17:29:43 +00:00
Barney Carroll
97c60f9046
Close code blocks!
2017-02-24 13:35:42 +00:00
Barney Carroll
71dcde6adf
Warn about data models w key props passed as attrs
...
Hint to avoid problems such as those found here [February 23, 2017 6:28 PM](https://gitter.im/lhorie/mithril.js?at=58af29c47ceae5376a2d470e )
2017-02-24 10:54:07 +00:00
Leo
65941d1416
document classes
2017-02-19 08:29:35 -05:00
Leo
818c13dba9
fix example
2017-02-19 08:27:31 -05:00
Pat Cavit
a578ffafdf
docs: another minor formatting tweak
2017-02-17 13:30:33 -08:00
Pat Cavit
76a816be86
docs: fix heading levels to be consistent
2017-02-17 13:30:03 -08:00
Leo Horie
ff16c7f47a
Merge pull request #1618 from spacejack/api-docs-fixes
...
API docs signature fixes for route resolver, jsonp, fragment
2017-02-14 21:11:51 -05:00
Pat Cavit
03285f8279
docs: setting up mocks in non-browser env ( #1630 )
2017-02-14 14:35:28 -08:00
Leo
d6cbc1c324
Merge remote-tracking branch 'origin/next' into next
2017-02-14 08:15:54 -05:00
Leo
dc3d5f8494
fix migration example
2017-02-14 08:15:38 -05:00
spacejack
19f1ac8908
Minor fixes to get the tutorial working
2017-02-12 19:41:47 -05: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
Leo
6dd9394fef
Merge remote-tracking branch 'origin/next' into next
2017-02-10 10:09:38 -05:00
Leo
632677e00c
fix update lifecycle in children of recycled
2017-02-10 10:09:18 -05:00
balajisivanath
a273f512df
Possible grammar correction
2017-02-09 22:59:45 +05:30