Angular component
Last updated
Last updated
[SINCE Orbeon Forms 2022.1.6, 2023.1.1]
This is an feature.
The Angular component is available from .
The Orbeon Forms Angular component can be used in any Angular application. To use it, add @orbeon/angular
to your dependencies, typically in your package.json
file, like this:
Usually, this is done via the command line:
The Orbeon Forms Angular component is based on the , but you don't need to include it explicitly using a <script>
tag. The Angular component will include it automatically.
The component is used as follows:
orbeonContext
No
String
'http://localhost:8080/orbeon'
Context where Orbeon Forms is deployed
app
No
String
'human-resources'
App name
form
No
String
'job-application'
Form name
mode
No
String
'new'
Either 'new'
, 'edit'
, or 'view'
documentId
Mandatory for modes other than new
String
For modes other than 'new'
, the document to be loaded
queryString
Yes
String
"job=clerk"
Additional query parameters
headers
Yes
new Headers({ 'Foo': 'bar' })
Additional HTTP headers; see point 2 below
Here's a simple example in TypeScript where a form is selected by clicking on buttons and then embedded using the Orbeon Forms Angular component:
app.component.ts
:
app.module.ts
:
The properties have the same meaning as in the :