net.liftmodules.ng

Angular

object Angular extends DispatchSnippet

Dynamically generates angular modules at page render time.

Usage:

def render = renderIfNotAlreadyDefined(
angular.module("zen.lift.goals")
  .factory("goals", jsObjFactory()
    .jsonCall("getJoined", GoalsClient.getGoals())
    .jsonCall("join", (goalId: String) => GoalsClient.joinIndividualGoal(getUsername, getDisplayName, goalId))
    .jsonCall("checkIn", (checkIn: CheckIn) => GoalsClient.checkIn(checkIn.goalId, checkIn.instanceId, ...))
  )
)
Linear Supertypes
DispatchSnippet, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Angular
  2. DispatchSnippet
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait AjaxFunctionGenerator extends AnyRef

  2. case class AjaxJsonToJsonFunctionGenerator[Model <: NgModel](modelToPromise: (Model) ⇒ Promise)(implicit evidence$2: Manifest[Model]) extends LiftAjaxFunctionGenerator with Product with Serializable

    Attributes
    protected
  3. case class AjaxNoArgToJsonFunctionGenerator(jsFunc: () ⇒ Promise) extends LiftAjaxFunctionGenerator with Product with Serializable

    Attributes
    protected
  4. case class AjaxStringToJsonFunctionGenerator(stringToPromise: (String) ⇒ Promise) extends LiftAjaxFunctionGenerator with Product with Serializable

    Attributes
    protected
  5. type DispatchIt = PartialFunction[String, (NodeSeq) ⇒ NodeSeq]

    Definition Classes
    DispatchSnippet
  6. trait Factory extends AnyRef

    Creates a generator function() {} to be used within an angular.

  7. class JsObjFactory extends Factory

    Produces a javascript object with ajax functions as keys.

  8. trait LiftAjaxFunctionGenerator extends AjaxFunctionGenerator

  9. class Module extends AnyRef

    Builder for Angular modules.

  10. trait NgModel extends AnyRef

    A model to be sent from angularjs as json, to lift deserialized into this class.

  11. sealed trait Promise extends AnyRef

    Used to resolve or reject a javascript angular $q promise.

  12. trait PromiseMapper extends AnyRef

    Maps the response passed into the ajax calls into something that can be passed into promise.

  13. case class Reject(reason: String = "server error") extends Promise with Product with Serializable

  14. case class Resolve(data: Option[JsExp] = scala.None) extends Promise with Product with Serializable

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object Promise

  7. object angular

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def dispatch: PartialFunction[String, (NodeSeq) ⇒ NodeSeq]

    Implementation of dispatch to allow us to add ourselves as a snippet

    Implementation of dispatch to allow us to add ourselves as a snippet

    Definition Classes
    Angular → DispatchSnippet
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. implicit val formats: DefaultFormats.type

  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. def init(): Unit

    Init function to be called in Boot

  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. def jsObjFactory(): JsObjFactory

    A factory builder that can create a javascript object full of ajax calls.

  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. def render: NodeSeq

    Renders all the modules that have been added to the RequestVar.

  24. def renderIfNotAlreadyDefined(module: Module): NodeSeq

    Registers the module with the RequestVar so that it may be rendered in base.

    Registers the module with the RequestVar so that it may be rendered in base.html.

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def toString(): String

    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DispatchSnippet

Inherited from AnyRef

Inherited from Any

Ungrouped