Edit in JSFiddle

<body ng-app='myApp'>
<div ng-controller='websites'>
    <a href='{{ws}}'>{{ws}}</a>
</div>
</body>
var myApp=angular.module('myApp',[]);
myApp.factory('dataService',function() 
{
    var factory={};
    factory.getWebSite= function() { return 'http://F2j.com';}
    return factory;
});

myApp.controller('websites', function ($scope, dataService) {
    $scope.ws=dataService.getWebSite();
});