AngularJS string replace on template
angularjs, javascript
Solution
`.replace` method can't be applied on Boolean variable, it works on string only. That's why you need to convert it to string then apply replace.
{{ selectedVehicle.air_conditioning.toString().replace(true, "Yes") }}
Working Fiddle
Hope this could help you. Thanks.
Problem
Why this return a blank string on my template? ``` {{ selectedVehicle.air_conditioning.replace(true, "Yes") }} ```