I'm getting a substring that's between two characters in an input label. this label is received as @input in a shared angular component and not all labels have the same structure
this.label = Address* (number and type);
styleSublabel() {
if (this.label.includes('(')) {
const mySubString = this.label.substring(
this.label.lastIndexOf('('),
this.label.lastIndexOf(')') + 1);
}
}
my intention is to give a different style of css with which to put a smaller font-size and italic style to this substring but I don't see a way to do it. Is it possible? Greetings and thanks in advance Is it possible? Greetings and thanks in advance