var app = angular.module('plunker', []);
app.controller('MainCtrl', function($scope) {
$scope.name = 'World';
$scope.listeequipements = [
{'name': 'test1', 'state': false},
{'name': 'test2', 'state': true},
{'name': 'test3', 'state': false},
{'name': 'test4', 'state': false},
{'name': 'test5', 'state': true}
];
});
<!DOCTYPE html>
<html ng-app="plunker">
<head>
<meta charset="utf-8" />
<title>AngularJS Plunker</title>
<script>document.write('<base href="' + document.location + '" />');</script>
<link rel="stylesheet" href="style.css" />
<script data-require="angular.js@1.5.x" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.11/angular.min.js" data-semver="1.5.11"></script>
<script src="app.js"></script>
</head>
<body ng-controller="MainCtrl">
<pre>{{ listeequipements }}</pre>
<p>Hello {{name}}!</p>
<div ng-repeat="equipment in listeequipements" class="list-group" ng-if="equipment.state" >
<img src="images/m_next_all.png" ng-if="equipment.state" width="32px">{{ equipment.name }}
</div>
</body>
</html>
/* Put your css in here */