@vicoders/step-config
v0.0.12
Published
``` - GET [ { label: 'Step1', inputs: [ { label: 'input1', type: 'text', value: 'value1' } ] }, { label: 'Step2', inputs: [ { label: 'input2',
Downloads
12
Keywords
Readme
Vicoders Steps Config
- GET
[
{
label: 'Step1',
inputs: [
{
label: 'input1',
type: 'text',
value: 'value1'
}
]
},
{
label: 'Step2',
inputs: [
{
label: 'input2',
type: 'textarea',
value: 'value2'
}
]
},
{
label: 'Step3',
inputs: [
{
label: 'input3',
type: 'image',
value: 'https://vignette.wikia.nocookie.net/naruto/images/0/09/Naruto_newshot.png/revision/latest?cb=20170621101134'
}
]
}
];
- POST
{
input1: 'value1',
input2: 'value2',
input3: 'https://vignette.wikia.nocookie.net/naruto/images/0/09/Naruto_newshot.png/revision/latest?cb=20170621101134'
}
- import to your module files: StepConfigModule
- HTML: <step-configs [configs]="configs"></step-configs>
- ts:
configs = {
url: 'http://api.reflaunt.local/api/v1/test/fakedata',
urlUpload: 'http://api.reflaunt.local/api/v1/upload',
headers: {
Authorization:
// tslint:disable-next-line:max-line-length
'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7ImlkIjoxOSwiZW1haWwiOiJ0cnVuZzE5OTViYW9AZ21haWwuY29tIiwic3RhdHVzIjoxfSwiaWF0IjoxNTczMjY4NTA3LCJleHAiOjE1OTM0Mjg1MDd9.Icc7DaZFqwJh8IuXap2kMiNcYzkjNKao687F1XGLwOg'
}
};