I have several $scope with content.
HTML :
<td>{{ project.captation }}</td>
<td>{{ project.perso }}</td>
Output :
content1
Random text here...
content2
- Lorem ipsum- quia dolor sit ame- consectetur adipiscing elit
JS (controller) :
$http({
url: "php/random.php",
method: "GET"
}).success(function(data) {
$scope.project = data;
});
I would like to replace each - by <li>....</li> only in the case where there is a -.
How to do this ?