Winkelarray -Filtertypskript
ngOnInit() {
this.booksByStoreID = this.books.filter(
book => book.store_id === this.store.id);
}
Bad Badger
ngOnInit() {
this.booksByStoreID = this.books.filter(
book => book.store_id === this.store.id);
}
<div>
<ul>
<div *ngFor="let item of list; let i = index">
<!--<div *ngIf="i!=0"> -->
{{ item }}
</div>
</ul>
</div>
export class MonComposantComponent implements OnInit {
constructor() { }
list = ['pomme','ananas','banna','peche' ,'abricot']
ngOnInit(): void {
this.list = this.list.filter( l=> l !='ananas' && l !='pomme');
}
}