0

I have this DEMO project

Can you ask me any idea how to uncheck mat-slide-toggle Title when I checked another mat-slide-toggle Published date and the opposite?

site
  • 247
  • 5
  • 15
  • site, I saw you deleted your recent array-sorting question, so I thought I'd just quickly mention here that [MDN shows how](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) to sort objects by a particular property (immediately before the 'examples' section). For your particular case, I think you'd use something like `myObjects.sort((a, b) => a.Date > b.Date ? -1 : 1);` – Cat May 04 '21 at 09:54

1 Answers1

0

good morning :D. You forgot to put in your code the [(ngModel)]="yourVariable" to receive the value when they change!

I recommend that you read more about forms and reactive forms:

Forms Reactive Forms

Here is you demo fixed: Demo

Gabriel Sereno
  • 845
  • 1
  • 5
  • 6