package ext
- Alphabetic
- Public
- All
Type Members
-
macro
class
Data
extends Annotation with StaticAnnotation
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( ... )
@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] }
Example: -
macro
class
Routes
extends Annotation with StaticAnnotation
- Annotations
- @compileTimeOnly( ... ) @compileTimeOnly( ... )
-
class
classModeJS
extends Annotation with StaticAnnotation
Marks a class annotated with a macro annotation (
@Component,@NgModule, etc.) to be translated into a native JS class (i.e.Marks a class annotated with a macro annotation (
@Component,@NgModule, etc.) to be translated into a native JS class (i.e. a@ScalaJSDefinedclass). -
class
classModeScala
extends Annotation with StaticAnnotation
Marks a class annotated with a macro annotation (
@Component,@NgModule, etc.) to be translated into a normal Scala class. -
class
debug
extends Annotation with StaticAnnotation
Enables debugging of an annotated angulate2 class during macro expansion and/or at runtime.
Enables debugging of an annotated angulate2 class during macro expansion and/or at runtime.
- Annotations
- @deprecated
- Deprecated
(Since version 0.0.5) Use angulate2.std.debug or de.surfice.smacrotools.debug instead