Package

angulate2.ext

data

Permalink

package data

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. data
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. macro class Data extends Annotation with StaticAnnotation

    Permalink

    Annotation for case classes to mark them as a pure JavaScript data object.

    Annotation for case classes to mark them as a pure JavaScript data object.

    Annotations
    @compileTimeOnly( ... ) @compileTimeOnly( ... )
    Example:
    1. @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]
      }

Value Members

  1. object Data

    Permalink
  2. implicit def iterableToArray[T](it: Iterable[T]): Array[T]

    Permalink
    Annotations
    @inline()
  3. implicit def mapToDictionary[K, V](map: Map[K, V]): Dictionary[V]

    Permalink
    Annotations
    @inline()
  4. implicit def optionToUndef[T](o: Option[T]): UndefOr[T]

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped