-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Async options in select are not reflected #88
Comments
Hi @shindekaps, I am not really sure I understand the problem as I would need more information. To use example.component.html <mz-select-container>
<select mz-select
id="select-number"
[label]="'Number'"
[placeholder]="'Choose a number'"
[(ngModel)]="optionValue">
<option *ngFor="let option of ['one','two','three','four']" [selected]="option === optionValue">{{ option }}</option>
</select>
</mz-select-container>
OptionValue => {{ optionValue }} example.component.ts
If it does not solve your issue please provide a sample of your code. Thanks, |
Hi, <mz-select-container>
<select mz-select
id="select-number"
[label]="'Number'"
[placeholder]="'Choose a number'"
[(ngModel)]="optionValue">
<option *ngFor="let option of comapnyList" [selected]="option === optionValue">{{ option }}</option>
</select>
</mz-select-container> where companyList is coming from server.Above example is not working. But when we add *ngIf then it is working <mz-select-container *ngIf="comapnyList.length>0">
<select mz-select
id="select-number"
[label]="'Number'"
[placeholder]="'Choose a number'"
[(ngModel)]="optionValue">
<option *ngFor="let option of comapnyList" [selected]="option === optionValue">{{ option }}</option>
</select>
</mz-select-container> Thanks |
Thank you for the reporting, you're right there're bugs with async options. We're on it. |
@shindekaps it should be fixed by #91 and it will be released to npm in the next days/weeks. If there is anything else or if the issue is not properly fixed, feel free to ping us. |
Ng for not working for select component
The text was updated successfully, but these errors were encountered: