<!doctype html>
<html ng-app="plunker">
  <head>
    <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.js"></script>
    <script src="example.js"></script>
    <link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
  </head>
  
  <body ng-controller="MainCtrl">
    
    <div>
      <div class="row">
        <div ng-repeat-start="product in products" class="clearfix" ng-if="$index % 3 == 0"></div>
        <div ng-repeat-end class="col-sm-4 bg-danger" style="cursor: pointer, z-index: 1" ng-click="doSomething()">
          <h2>af {{product.title}}</h2>
        </div>
      </div>
    </div>
    
  </body>
</html>
var app = angular.module('plunker', []);

app.controller('MainCtrl', function($scope) {
  $scope.name = 'World';
  $scope.obj = {};
   $scope.products = [
    { title: 'text text text text text text text text text text text text text text 1' },
    { title: 'text text text2' },
    { title: 'text text text text text1' },
    { title: 'text text text2' },
    { title: 'text 1' },
    { title: 'text te text text text text text text text text text text xt2' },
    { title: 'text 1' },
    { title: 'text 2' },
    { title: 'text  text text text1' },
    { title: 'text 2' },
    { title: 'text text text textv text text text1' },
    { title: 'text 2' }
  ];
});