I've angular expression like:
<ion-col text-center>{{employeeProfile?.YearOfService}}</ion-col>
And this print: 1 years 6 months 10 days
But my desired output will be:
1 years
6 months
10 days
I'm getting the data from server side as an object and value of
YearOfService = '1 years 6 months 10 days'
*Those who are proving me another link that already solved this issue, please keep it mind, I'm using Angular 7 not AngularJs. And another thing is that, this is possible in JavaScript with Regular Expression but when I transfer this to Angular Expression it doesn't work at all.