net.liftmodules.ng

Angular

object Angular extends DispatchSnippet with AngularProperties with Loggable

Dynamically generates angular modules at page render time.

Usage:

def render = renderIfNotAlreadyDefined(
angular.module("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
Loggable, AngularProperties, DispatchSnippet, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Angular
  2. Loggable
  3. AngularProperties
  4. DispatchSnippet
  5. AnyRef
  6. 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$3: 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.module.factory(name, ...) call.

  7. abstract class FutureFunctionGenerator extends LiftAjaxFunctionGenerator

    Attributes
    protected
  8. class JsObjFactory extends Factory

    Produces a javascript object with ajax functions as keys.

    Produces a javascript object with ajax functions as keys. e.g.

    function(dependencies) {
    get: function() { doAjaxStuff(); }
    post: function(string) { doAjaxStuff(); }
    }
  9. case class JsonFutureFunctionGenerator[Model <: NgModel, T](func: (Model) ⇒ LAFuture[Box[T]])(implicit evidence$4: Manifest[Model]) extends FutureFunctionGenerator with Product with Serializable

    Attributes
    protected
  10. trait LiftAjaxFunctionGenerator extends AjaxFunctionGenerator

  11. class Module extends AnyRef

    Builder for Angular modules.

  12. trait NgModel extends AnyRef

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

  13. case class NoArgFutureFunctionGenerator[T](func: () ⇒ LAFuture[Box[T]]) extends FutureFunctionGenerator with Product with Serializable

    Attributes
    protected
  14. sealed trait Promise extends AnyRef

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

  15. trait PromiseMapper extends AnyRef

    Maps the response passed into the ajax calls into something that can be passed into promise.resolve(data) or promise.reject(reason).

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

  17. case class RequestData[Model <: NgModel](id: String, data: Model)(implicit evidence$5: Manifest[Model]) extends Product with Serializable

  18. case class RequestString(id: String, data: String) extends Product with Serializable

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

  20. case class ReturnData(id: String, data: Any) extends Product with Serializable

  21. case class StringFutureFunctionGenerator[T](func: (String) ⇒ LAFuture[Box[T]]) extends FutureFunctionGenerator with Product with Serializable

    Attributes
    protected
  22. case class ToJsonFunctionGenerator(obj: AnyRef) extends LiftAjaxFunctionGenerator with Product with Serializable

    Attributes
    protected
  23. case class ToStringFunctionGenerator(s: String) extends LiftAjaxFunctionGenerator with Product with Serializable

    Attributes
    protected

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. object DefaultApiSuccessMapper extends PromiseMapper

    Maps an api result to a Promise object that will be used to fulfill the javascript promise object.

  5. object Promise

  6. val ajaxEndpoint: String

    Definition Classes
    AngularProperties
  7. object angular

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def bind(xhtml: NodeSeq): NodeSeq

    Sets up a two-way scope variable binding by dropping in two binding actors as the last Elem/Node children in the passed NodeSeq

    Sets up a two-way scope variable binding by dropping in two binding actors as the last Elem/Node children in the passed NodeSeq

    xhtml
    returns

  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. 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
  12. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  17. def init(futures: Boolean = true, appSelector: String = "[ng-app]", includeJsScript: Boolean = true): Unit

    Init function to be called in Boot

    Init function to be called in Boot

    futures

    true to include

    net.liftweb.actor.LAFuture
    appSelector

    the CSS selector to find your app in the page

    includeJsScript

    true to include the prerequisite liftproxy.js file, false if you plan to include it yourself.

  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. val logger: Logger

    Attributes
    protected
    Definition Classes
    Loggable
  21. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  24. def render: NodeSeq

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

  25. def renderIfNotAlreadyDefined(module: Module): NodeSeq

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

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

    Definition Classes
    AnyRef
  27. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Loggable

Inherited from AngularProperties

Inherited from DispatchSnippet

Inherited from AnyRef

Inherited from Any

Ungrouped