v0.7.0
Breaking changes:
- Router components now take any attributes
- Change this
to this
<.Router(history = HashHistory)( <.Route(path = "/", component = new App())( <.Route(path = "about", component = new About())(), <.Route(path = "repos", component = new Repos())( <.Route(path = ":id", component = new Repo())() ), <.Route(path = "form", component = new Form())() )
<.Router(^.history := HashHistory)( // ^. := <.Route(^.path := "/", ^.component := new App())( <.Route(^.path := "about", ^.component := new About())(), <.Route(^.path := "repos", ^.component := new Repos())( <.Route(^.path := ":id", ^.component := new Repo())() ), <.Route(^.path := "form", ^.component := new Form())() )
- This adds some boilerplate code (
^.
and:=
), but you can now do this:<.Link(^.to := "/login", ^.className := Set("btn", "btn-default"))
- Change this