All files / src/app/extensions/wishlists/pages/shared-wishlist shared-wishlist-page.component.ts

85.71% Statements 6/7
75% Branches 3/4
50% Functions 1/2
85.71% Lines 6/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 211x   1x               1x 1x 1x   1x            
import { ChangeDetectionStrategy, Component } from '@angular/core';
 
import { WishlistsFacade } from '../../facades/wishlists.facade';
import { WishlistItem } from '../../models/wishlist/wishlist.model';
 
@Component({
  selector: 'ish-wishlist-page',
  templateUrl: './shared-wishlist-page.component.html',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class SharedWishlistPageComponent {
  wishlist$ = this.wishlistsFacade.sharedWishlist$;
  wishlistLoading$ = this.wishlistsFacade.wishlistLoading$;
 
  constructor(private wishlistsFacade: WishlistsFacade) {}
 
  trackByFn(_: number, item: WishlistItem) {
    return item.id;
  }
}