I'm part of a team designing a new system. We choose Angular as our frontend Framework and we started to study it for implementation.
Now I hit a roadblock. My idea is to create the inputs on html and fill, hide or label them based on objects from Angular, I want to create single objects for each input, like:
inputPhone = {
'label': 'Mobile phone',
'placeholder': '987 333 987',
'validate': {
'required': true
},
'options': {
'required': true,
'hidden': false
}
};
And another idea is to create objects for each section of this objects, as of:
labels = {
'inputPhone': 'Mobile phone',
'inputCity': 'City'
};
placeholders = {
'inputPhone': '987 333 987',
'inputCity': 'Las Vegas'
};
required = {
'inputCity': true
};
So, I'm asking it more to know if there is anything close to a standard that I missed somewhere.