I am receiving data from REST api. For name parameter, I want to split it at 2330 and give new line break.
Example: I have name: ABCD 2330 This is My Name I want to give different style to the split strings and the output on my screen to be:
ABCD 2330
This is My Name // this will be bold
and not
ABCD 2330 This is My Name
Given the complexity of my object, I don't think I can put this operation in the ts file. I am binding the data like: <li>{{data.name}}</li>
can I use some pipe like split and how would I add /n after the split and rejoin the string and also how can I give different style in the same
pipefor your template. Angular's documentation is great resource to do so. angular.io/guide/…