Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. angular.module('starter.services', [])
  2. .factory('Telephone', function() {
  3. var telephone = 'Téléphone';
  4. return {
  5. getVariable: function() {
  6. return telephone;
  7. }
  8. };
  9. })
  10.  
  11. .controller('DashCtrl', function($scope, Telephone) {
  12. $scope.telephone = Telephone.getVariable();
  13. console.log('Telephone = ' + $scope.telephone); //Here I get badly formmatted accent
  14. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement