I'm relatively new to Angular, but I've been given a project that's built with Angular.
As I examine the .ts file containing the list of property types, I need to wrap a span around the label text. Is this doable?
Here is the current list within the .ts file:
export const extraQuestionsList = [
{
name: 'propertyType',
type: 'radio',
label: 'Purchase Type',
value: 'residential',
validators: [],
options: [
{ id: 'residential', value: 'residential', label: 'Purchase for you (Residential)', class: 'btn-choice--left' },
{ id: 'bytolet', value: 'bytolet', label: 'Purchase to rent (Buy-to-Let)', class: 'btn-choice--right' },
],
tooltip: '',
},
];
Here's how I want it to look:
export const extraQuestionsList = [
{
name: 'propertyType',
type: 'radio',
label: 'Purchase Type',
value: 'residential',
validators: [],
options: [
{ id: 'residential', value: 'residential', label: '<span class="hidden-xs">Purchase for you</span> (Residential)', class: 'btn-choice--left' },
{ id: 'bytolet', value: 'bytolet', label: '<span class="hidden-xs">Purchase to rent</span> (Buy-to-Let)', class: 'btn-choice--right' },
],
tooltip: '',
},
];
Any assistance on this matter would be greatly appreciated.
Thank you in advance.