for
loop, for each iterated object, you do another for
to loop through all the rest of the objects
[ 'first', 'last' ]
[ 'last' ]
for(var i = 0; i < collection.length; i++) {
if(Object.keys(collection[i]) === Object.keys(source)) {
console.log('este ba!');
} else {
// console.log('nu este!');
console.log(Object.keys(collection[i]));
}
}
<div class="container">
<div class="row">
<div class="col-md-3 col-sm-6">
<ul>
@for ($i = 0; $i < count($info->video); $i++)
<li>
<div class="card">
<img class="card-img-top" src="{{$info->video[$i]->thumbnail}}" alt="Card image cap">
<div class="card-body">
<h5 class="card-title">{{$info->video[$i]->title}}</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
</div>
</li>
@endfor
</ul>
</div>
</div>
hi,
working link https://stackblitz.com/edit/angular-t2xvra?file=app/app.component.html
not working link https://stackblitz.com/edit/angular-xvpf9q?file=app/app.component.css
.imageThird {
background: url(http://via.placeholder.com/15x15) no-repeat -539px -240px;
width: 20px;
height: 20px;
}
.displayInlineBlock {
display: inline-block;
}
.is-multiple-of-3 .imageThird{
visibility: visible;
}