Hello Bindu,
In order to show the required asterisk, you need to provide an igxLabel directive to the select component.
You can refer to this sample which shows both template and reactive forms with the select component.
Hi,Thanks for inputs. But the issue is still not resolved. Below is my code. What am I missing?
I have modified the sample my colleague Radoslav already shared with you, in order to reflect a simplified version of your code snippet. As it seems you are using a Reactive Form, it needs to specify the Form's Validators. You can see the code sample at: https://stackblitz.com/edit/igxselect-required-gosho.
Please let me know how it works for you and in case you have further questions, feel free to modify the above sample, so I am aware of your actual code implementation.
Hello Ivaylo,
Here is what I did. I copy pasted your code in my project hoping I would start with working code snippet.But I didn't work again. Next thing I did was to create a separate test component and just copy pasted .ts n html code parts from your example. Both the tries everything works except that little required *.
I'm cross checked all imports in ts n app.module.ts. I've found no way to recreate this problem to show you. I suggest you to explore this further as to what dependency might be causing this now that we both tried with same code.
Hello,
What is the exact igniteui-angular version you are using in your application? You will find it specified in the project’s package.json file. The required * is included in v7.3.x so any post version includes the required * functionality.
For reference: https://github.com/IgniteUI/igniteui-angular/pull/4916/files
Hi Ivaylo,
This is from my package,json
The *required functionality for the IgxSelect was introduced in version 7.3.8 (see details).
In case you want to use it, you have to upgrade to at least v7.3.8. Additionally, in case you are OK to hit several breaking changes from v7 to v8 both in Angular and Ignite UI for Angular, you can always go for the latest available v8.1.2 as well.