educative.io

Return str.replace(reg, '<span class="font-weight-bold">$1</span>');

return str.replace(reg, '<span class="font-weight-bold">$1</span>');

For the Services lesson in the Angular architect course
If I replace $1 with abc, abc is printed in the column, however $1 is not.
What’s different with $1?

Hi @SAMARTH_MISHRA,
Can you please share the lesson link? Also, in which file (mention file name) you’re seeing this piece of code?

Thanks!