servant-js-0.9.4.2: Automatically derive javascript functions to query servant webservices.

Safe HaskellNone
LanguageHaskell2010

Servant.JS.Angular

Synopsis

Documentation

data AngularOptions Source #

Options specific to the angular code generator

Constructors

AngularOptions 

Fields

defAngularOptions :: AngularOptions Source #

Default options for the Angular codegen. Used by wrapInService.

angularService :: AngularOptions -> JavaScriptGenerator Source #

Instead of simply generating top level functions, generates a service instance on which your controllers can depend to access your API. This variant uses default AngularOptions.

angularServiceWith :: AngularOptions -> CommonGeneratorOptions -> JavaScriptGenerator Source #

Instead of simply generating top level functions, generates a service instance on which your controllers can depend to access your API

angular :: AngularOptions -> JavaScriptGenerator Source #

Generate regular javacript functions that use the $http service, using default values for CommonGeneratorOptions.

angularWith :: AngularOptions -> CommonGeneratorOptions -> JavaScriptGenerator Source #

Generate regular javascript functions that use the $http service.

generateAngularJS :: AngularOptions -> AjaxReq -> Text Source #

js codegen using $http service from Angular using default options

generateAngularJSWith :: AngularOptions -> CommonGeneratorOptions -> AjaxReq -> Text Source #

js codegen using $http service from Angular