Object

net.liftmodules.ng

Angular

Related Doc: package ng

Permalink

object Angular extends DispatchSnippet with AngularProperties with LiftNgJsHelpers with Loggable

Primary lift-ng module

Linear Supertypes
LiftNgJsHelpers, Loggable, AngularProperties, DispatchSnippet, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Angular
  2. LiftNgJsHelpers
  3. Loggable
  4. AngularProperties
  5. DispatchSnippet
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. trait AjaxFunctionGenerator extends AnyRef

    Permalink
  2. case class AjaxJsonToJsonFunctionGenerator[Model <: NgModel](modelToPromise: (Model) ⇒ Promise)(implicit mf: Manifest[Model], formats: Formats) extends LiftAjaxFunctionGenerator with Product with Serializable

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

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

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

    Permalink
    Definition Classes
    DispatchSnippet
  6. trait Factory extends AnyRef

    Permalink

    Creates a generator function() {} to be used within an angular.module.factory(name, ...) call.

  7. case class FromAnyFunctionGenerator(obj: Any)(implicit formats: Formats) extends LiftAjaxFunctionGenerator with Product with Serializable

    Permalink
    Attributes
    protected
  8. abstract class FutureFunctionGenerator extends LiftAjaxFunctionGenerator

    Permalink
    Attributes
    protected
  9. type FutureId = String

    Permalink
  10. class JsObjFactory extends Factory

    Permalink

    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(); }
    }
  11. case class JsonFutureFunctionGenerator[Model <: NgModel, T](func: (Model) ⇒ LAFuture[Box[T]])(implicit mf: Manifest[Model], formats: Formats) extends FutureFunctionGenerator with Product with Serializable

    Permalink
    Attributes
    protected
  12. trait LiftAjaxFunctionGenerator extends AjaxFunctionGenerator

    Permalink
  13. case class ModelFnBox[M](f: (M) ⇒ Box[Any]) extends Product with Serializable

    Permalink

    This exists to wrap the functions passed to defModelToAny/jsonCall and handle the type contravariance appropriately.

    This exists to wrap the functions passed to defModelToAny/jsonCall and handle the type contravariance appropriately. Users of lift-ng needn't even know it exists. See http://stackoverflow.com/questions/31907701/why-does-this-scala-function-compile-when-the-argument-does-not-conform-to-the-t/31907828#answer-31907813

  14. case class ModelFnFuture[M, R](f: (M) ⇒ LAFuture[Box[R]]) extends Product with Serializable

    Permalink

    This exists to wrap the functions passed to defModelToFutureAny/future and handle the type contravariance appropriately.

    This exists to wrap the functions passed to defModelToFutureAny/future and handle the type contravariance appropriately. Users of lift-ng needn't even know it exists. See http://stackoverflow.com/questions/31907701/why-does-this-scala-function-compile-when-the-argument-does-not-conform-to-the-t/31907828#answer-31907813

  15. class Module extends AnyRef

    Permalink

    Builder for Angular modules.

  16. type NgFuture[T] = (LAFuture[Box[T]], FutureId)

    Permalink
  17. trait NgModel extends AnyRef

    Permalink

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

  18. case class NoArgFutureFunctionGenerator[T](func: (Unit) ⇒ LAFuture[Box[T]])(implicit formats: Formats) extends FutureFunctionGenerator with Product with Serializable

    Permalink
    Attributes
    protected
  19. sealed trait Promise extends AnyRef

    Permalink

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

  20. trait PromiseMapper extends AnyRef

    Permalink

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

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

    Permalink
  22. case class RequestData[Model <: NgModel](data: Model)(implicit evidence$1: Manifest[Model]) extends Product with Serializable

    Permalink
  23. case class RequestString(data: String) extends Product with Serializable

    Permalink
  24. case class Resolve(data: Option[JsExp] = None, futureId: Option[String] = None) extends Promise with Product with Serializable

    Permalink
  25. case class ReturnData(id: FutureId, json: Box[String]) extends Product with Serializable

    Permalink
  26. case class StringFutureFunctionGenerator[T](func: (String) ⇒ LAFuture[Box[T]])(implicit formats: Formats) extends FutureFunctionGenerator with Product with Serializable

    Permalink
    Attributes
    protected
  27. case class ToJsonFunctionGenerator(obj: AnyRef)(implicit formats: Formats) extends LiftAjaxFunctionGenerator with Product with Serializable

    Permalink
    Attributes
    protected
  28. case class ToStringFunctionGenerator(s: String)(implicit formats: Formats) extends LiftAjaxFunctionGenerator with Product with Serializable

    Permalink
    Attributes
    protected

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. object DefaultApiSuccessMapper extends PromiseMapper

    Permalink

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

  5. val FutureIdNA: FutureId

    Permalink
  6. object Promise

    Permalink
  7. val ajaxFn: String

    Permalink
    Definition Classes
    AngularProperties
  8. object angular

    Permalink
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def bind(xhtml: NodeSeq): NodeSeq

    Permalink

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

  11. def buildCmd(root: Boolean, f: JsCmd): JsCmd

    Permalink

    Sends any of our commands with all of the early-arrival retry mechanism packaged up

    Sends any of our commands with all of the early-arrival retry mechanism packaged up

    Attributes
    protected
    Definition Classes
    LiftNgJsHelpers
  12. def clone(): AnyRef

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

    Permalink

    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
  14. val enhancedAjax: Boolean

    Permalink
    Definition Classes
    AngularProperties
  15. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. def getToServerBinder(theType: String): Box[NgModelBinder[NgModel]]

    Permalink
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. val id: String

    Permalink
    Attributes
    protected
    Definition Classes
    LiftNgJsHelpers
  22. def init(futures: Boolean = true, appSelector: String = "[ng-app]", includeJsScript: Boolean = true, includeAngularJs: Boolean = false, additionalAngularJsModules: List[String] = List(), includeAngularCspCss: Boolean = false, retryAjaxInOrder: Boolean = false): Unit

    Permalink

    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.

    includeAngularJs

    true to include angular.js and modules found in angularjs webjar.

    additionalAngularJsModules

    list of additional angularjs modules to include in the page.

    includeAngularCspCss

    true to include angular-csp.css found in angularjs webjar.

    retryAjaxInOrder

    true to preserve the order of ajax service calls even in the event of server communication failures.

  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. def jsObjFactory(): JsObjFactory

    Permalink

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

  25. val logger: Logger

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

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. def render: NodeSeq

    Permalink

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

  30. def renderIfNotAlreadyDefined(module: Module): NodeSeq

    Permalink

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

  31. def stringify(obj: Any)(implicit formats: Formats): String

    Permalink
    Attributes
    protected
    Definition Classes
    LiftNgJsHelpers
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. implicit def wrapModelFnBox[M](f: (M) ⇒ Box[Any]): ModelFnBox[M]

    Permalink

    Transparently wraps NgModel => Box[Any] functions appropriately for defModelToAny/jsonCall

  38. implicit def wrapModelFnFuture[M, R](f: (M) ⇒ LAFuture[Box[R]]): ModelFnFuture[M, R]

    Permalink

    Transparently wraps NgModel => LAFuture[Box[Any]] functions appropriately for defModelToFutureAny

Inherited from LiftNgJsHelpers

Inherited from Loggable

Inherited from AngularProperties

Inherited from DispatchSnippet

Inherited from AnyRef

Inherited from Any

Ungrouped