app v5.0.0 Release Notes
Release Date: 2019-09-03 // over 4 years ago-
app
- ๐ฆ
app
package has been moved topkg/app
. Component function associated to html events now take js values as argument.
func(src, event js.Value)
๐ See CompoHandler
Messenger implementation has been added:
func (h *Hello) OnMount() { app.Bind("click", h). Do(func() { // do something... }) }func (h *Hello) OnClick(s, e js.Value) { app.Emit("click") }
๐
Handle
has been removed.โก๏ธ Package has be revamped to use
syscall/js
to update a page state rather than an intermediary javascript file.๐ Single page application (SPA) routing support.
goapp
goapp init
now creates ready to usemain.go
files if they are nonexistent.
โก๏ธ how to update
goapp update -v
- ๐ฆ