angulate2.ext.data
Annotation for case classes to mark them as a pure JavaScript data object.
@Data case class Foo(id: Int, var bar: String)
is expanded to
@js.native trait Foo extends js.Object { val id: Int = js.native var bar: String = js.native } object Foo { def apply(id: Int, bar: String): Foo = js.Dynamic.literal(id = id, bar = bar).asInstanceOf[Foo] }
Annotation for case classes to mark them as a pure JavaScript data object.
is expanded to