如何添加链接<a> to the content inside of $scope.var of AngularJS

时间:2015-04-22 11:36:32

标签: json angularjs

I have got my data from my controller like below.

controller:

$http.get('json/projects.json').success(function(data) {
            $scope.projects = data;
        });   

my data in json file is something like this:

json:

{
...
projects = ['hello world', 'www.google.com', 'hello world.']
}

html:

<div ng-repeat='p in projects'> {{p}} </div>

My question is how to display 'www.google.com' as a link rather than a simple text?

0 个答案:

没有答案