Skip to content Skip to sidebar Skip to footer

French Accent Display In Angular

I have a variable defined in my services.js file and made available to my controller via a factory. This variable contains French accents. Here is an example: angular.module('start

Solution 1:

You need to change é to é. So the evaluation will translate é back to é

angular.module('starter.services', [])
.factory('Telephone', function() {
    var telephone = 'Téléphone';
    return {
        getVariable: function() {
            return telephone;
        }
    };
 })

Post a Comment for "French Accent Display In Angular"