AjaxEventStream
-
Ajax 호출하기web/laminar 2022. 1. 8. 23:05
코드 import com.raquo.airstream.web.AjaxEventStream import com.raquo.laminar.api.L._ import org.scalajs.dom object Main { def main(args: Array[String]): Unit = { val urlVar = Var("https://api.zippopotam.us/us/90210") val otherButton = button("other url", onClick.mapTo("https://jsonplaceholder.typicode.com/todos/2") --> urlVar) val submitButton = button("submit") // EventStream.fromFuture(Ajax.get(..