Universis Forms
Implementation of angular-formio for Universis client applications.
npm i @universis/forms
Import AdvancedFormsModule:
@NgModule({
declarations: [
...
],
imports: [
CommonModule,
BrowserModule,
BrowserAnimationsModule,
HttpClientModule,
TranslateModule.forRoot(),
SharedModule.forRoot(),
...,
AdvancedFormsModule.forRoot(),
...
],
bootstrap: [AppComponent]
})
export class AppModule {
constructor() {
...
}
}
and start using AdvancedFormComponent:
or
Import @universis/forms as submodule in any angular cli project by replacing newProjectRoot as already configured in your angular.json
git submodule add https://gitlab.com/universis/forms.git
e.g.
git submodule add https://gitlab.com/universis/forms.git projects/forms
Add the following entries to tsconfig.app.json#compilerOptions.paths:
{
"compilerOptions": {
"paths": {
"@universis/forms": [
"
]
...
}
}
}
If you want to include @universis/forms as an angular cli project, include the following section in angular.json under projects:
"projects": {
"forms": {
"root": "
"sourceRoot": "
"projectType": "library",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "
"project": "
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "
"polyfills": "
"tsConfig": "
"karmaConfig": "
"watch": false,
"codeCoverage": true,
"scripts": []
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"
"
],
"exclude": [
"/node_modules/"
]
}
}
}
},
...
}