Milos Bejda Technical Blog - All Things Automated

Angular 4 compareWith Option Selector

 angularjs, Tutorial

Angular introduced a handy directive to help you compare options to select. Lets see how this directive works. Add this directive to your select : <select [compareWith]="byAnimal" [(ngModel)]="selectedAnimal"