Ngx-formly: The pipe 'formlySelectOptions' could not be found

Created on 26 Sep 2019  路  3Comments  路  Source: ngx-formly/ngx-formly

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[x] support request

Current behavior
When customizing the select template, it complains about missing formlySelectOptions. Obviously I am missing an import but don't know how to fix this.

Expected behavior
Rendering the select using a custom template.

Minimal reproduction of the problem with instructions
I have followed the following instructions https://formly.dev/guide/custom-formly-field
This works great for input but select is causing the issue with the missing pipe.

  • Angular version: 7.2.15
question

Most helpful comment

The formlySelectOptions pipe is part of FormlySelectModule which you may need to import:

import { FormlySelectModule } from '@ngx-formly/core/select';

@NgModule({
  imports: [
    ...
    FormlySelectModule,
  ],
})
export class AppModule { }

All 3 comments

The formlySelectOptions pipe is part of FormlySelectModule which you may need to import:

import { FormlySelectModule } from '@ngx-formly/core/select';

@NgModule({
  imports: [
    ...
    FormlySelectModule,
  ],
})
export class AppModule { }

Thank you for the quick response. Perhaps adding a custom select as an example will be more appropriate than a input? By anyway, it is all good now.

Perhaps adding a custom select as an example will be more appropriate than an input?

why not or adding a note in the custom templates guide.
PR welcomed!

Was this page helpful?
0 / 5 - 0 ratings