Use 3rd party Form Controls with Angular Formly

Share this video with your friends

Send Tweet

In a real form you'll most likely want to add some 3rd party form controls. For example autocomplete fields, date-time pickers etc. In this lesson we're going to see how to use ng-select and configure it s.t. it can be used within our Formly form.

Erkan Buelbuel
Erkan Buelbuel
~ 3 years ago

I had to add the following line to make it work:

export class NgSelectFormlyComponent extends FieldType {
  formControl!: FormControl; // definite assignment assertion
}