form-aurora-stefanini v0.1.35
FormAurora
This library was generated with Angular CLI version 8.2.14.
License 📄
Stefanini colombia Stefanini
Getting Started
Install the form-aurora
package:
npm i form-aurora
Import just what you need for your application:
@NgModule({
declarations: [
AppComponent, FormAuroraComponent
],
imports: [
BrowserModule,
AppRoutingModule,
CommonModule, FormsModule, ReactiveFormsModule
, HttpClientModule],
providers: [],
bootstrap: [AppComponent]
})
<lib-FormAurora [nameCompany]="nameCompany" [dataClassCss]="dataClassCss" [dataForm]="dataForm" [imgPrincipal]="imgPrincipal" ></lib-FormAurora>
ngOnInit() {
this.loadData();
}
loadData() {
this.dataClassCss = {
formcontrol: "",
container: "",
titles: "",
formgroup: "",
spandrequired: "",
button: "",
rowTitle: "",
rowcontent: "",
rowimage: "",
rowform: "",
}
this.nameSave = "SAVE"
this.nameCompany = "NAME COMPANY";
this.imgPrincipal = "./assets/img/imgIdentificacion.png"
this.dataForm = {
id: 1,
title: "Formulario1",
urlSend: "http://localhost:8060/save",
formQuestions: [
{
order: "2",
question: {
id: 6,
name: "address",
value: "Direccion",
required: false,
questionType: {
id: 1
},
}
},
{
order: "1",
question: {
id: 5,
name: "phone",
value: "Telefono",
required: true,
questionType: {
id: 1,
},
}
},
{
order: "3",
question: {
id: 7,
name: "company",
value: "Empresa",
required: true,
questionType: {
id: 3
},
questionAnswers: [
{
answer: {
id: 47,
value: "Stefanini",
}
},
{
answer: {
id: 48,
value: "IBM",
}
},
{
answer: {
id: 49,
value: "SENA",
}
}
]
}
},
]
}
}
Code scaffolding
Run ng generate component component-name --project FormAurora
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project FormAurora
.
Note: Don't forget to add
--project FormAurora
or else it will be added to the default project in yourangular.json
file.
Build
Run ng build FormAurora
to build the project. The build artifacts will be stored in the dist/
directory.
Publishing
After building your library with ng build FormAurora
, go to the dist folder cd dist/form-aurora
and run npm publish
.
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago