These are chat archives for ThoughtWorksInc/Binding.scala

23rd
Dec 2016
Michele Sciabarra
@sciabarra
Dec 23 2016 09:25
there is no such a thing like a Nav element
Binding[Nav] is not possible
wonder why
杨博 (Yang Bo)
@Atry
Dec 23 2016 09:29
I don't know. I am not the author of scalajs-dom
Michele Sciabarra
@sciabarra
Dec 23 2016 09:30
odd
hope Binding[Element] works
杨博 (Yang Bo)
@Atry
Dec 23 2016 09:31
Try asking @sjrd instead
Michele Sciabarra
@sciabarra
Dec 23 2016 09:31
yup - will try :)
Michele Sciabarra
@sciabarra
Dec 23 2016 10:05
is there any way to construct a binding seq in code?
Michele Sciabarra
@sciabarra
Dec 23 2016 10:14
this worked dom.render(document.body, Binding { Constants(navigation.bind, layout.bind) } )
but not exactly obvious
杨博 (Yang Bo)
@Atry
Dec 23 2016 10:19
You can also try this
import scalaz.syntax.all._
(navigation |@| layout)(Constants(_, _))
Michele Sciabarra
@sciabarra
Dec 23 2016 10:20
LOL so we can be sure to scare off all the people I am trying to get into Scala.js :)