You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def main(args: Array[String]): Unit = {
implicit val system = ActorSystem("AkkaUI")
implicit val materializer = ActorMaterializer()
val textBox = input(placeholder := "Name").render
val name = span().render
val source: Source[Event, NotUsed] = textBox.source("input") // <---- Type Error Any does not confirm to type of Source
val sink: Sink[String, NotUsed] = name.sink("textContent") // <---- Type Error Any does not confirm to type of Sink
source.map(_ => textBox.value).runWith(sink)
val root = div(
textBox,
h2("Hello ", name)
)
document.querySelector("#root").appendChild(root.render)
}
}
The text was updated successfully, but these errors were encountered:
I am facing issue in making first example of Readme.md work.
import akka.ui._
import akka.NotUsed
import akka.actor.ActorSystem
import akka.stream.ActorMaterializer
import akka.stream.scaladsl.{Sink, Source}
import org.scalajs.dom.raw.Event
import scalatags.JsDom.all._
import org.scalajs.dom.document
object Ankush {
def main(args: Array[String]): Unit = {
implicit val system = ActorSystem("AkkaUI")
implicit val materializer = ActorMaterializer()
}
}
The text was updated successfully, but these errors were encountered: