Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data AngularOptions = AngularOptions {}
- defAngularOptions :: AngularOptions
- angularService :: AngularOptions -> JavaScriptGenerator
- angularServiceWith :: AngularOptions -> CommonGeneratorOptions -> JavaScriptGenerator
- angular :: AngularOptions -> JavaScriptGenerator
- angularWith :: AngularOptions -> CommonGeneratorOptions -> JavaScriptGenerator
- generateAngularJS :: AngularOptions -> AjaxReq -> Text
- generateAngularJSWith :: AngularOptions -> CommonGeneratorOptions -> AjaxReq -> Text
Documentation
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