how can i create custom date functionality angular query builder module

Few things that I see wrong with your code:

  1. You are creating variables inside the template and using them and ngModel. I am not sure that will work. You need to create models in your component and then use those as ngModels to associate with Angular

  2. If you sole purpose is data and template manipulation then you are using Angular the wrong way. You will be better off with Reactive Forms

  3. Because of this *ngIf="rule.value=='customDate'" your input will disappear the moment a value gets added to it, provided that you use correct Angular models.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top