Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- angular.module('starter.services', [])
- .factory('Telephone', function() {
- var telephone = 'Téléphone';
- return {
- getVariable: function() {
- return telephone;
- }
- };
- })
- .controller('DashCtrl', function($scope, Telephone) {
- $scope.telephone = Telephone.getVariable();
- console.log('Telephone = ' + $scope.telephone); //Here I get badly formmatted accent
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement