trackBy(index: number, name: model): number {
        return name.id;
      }

      Typescript language logo
      your recipe card header background
      Angular Trackby

      Angular TypeScript Recipes

      This code will track the model by its id.

      Shortcut: angular.trackby

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.