You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello:
I'm trying to make a form with some selects but when I try to add more than one select I get this error
InternalError: too much recursion
I wish could provide more info but only notice this when I include the material-select directive on the second select
If I don't include the directive, the select is rendered but as hidden element(I don't know why this happens too)
Maybe I'm missing something but here is my code for the view hope it helps...
<h1>Generate Report</h1><divclass="row"><divclass="input-field col s4"><selectng-model="stationId"
ng-options="station.id as station.name for station in stations"
material-select><optionvalue="">Select Station</option></select></div></div><divclass="row"><divclass="input-field col s4"><selectng-model="reportType" material-select><optionvalue="">Select type</option><optionvalue="day">By Day</option><optionvalue="month">By Month</option><optionvalue="year">By Year</option></select></div></div>
Just remark that the problem comes up when I add the material-select directive for the second time
Thanks in advance
Update 1
Just to complement If I delete the ng-model on my view the error is gone, but obviously i need the ng-model directive in order get the value from the select.
Update 2
If I initialize the options for my second select on my controller and then set it up my view with ng-options, everything runs perfect.
I hope this helps if somebody has the same but I'm still thinking this is a wrong behavior
Thanks again, let me know if I can help with something.
<divclass="row"><divclass="input-field col s4"><selectng-model="reportType"
ng-options="typeOption.value as typeOption.label for typeOption in typeOptions"
material-select><optionvalue="">Select type</option></select></div></div>
The text was updated successfully, but these errors were encountered:
Hello:
I'm trying to make a form with some selects but when I try to add more than one select I get this error
I wish could provide more info but only notice this when I include the material-select directive on the second select
If I don't include the directive, the select is rendered but as hidden element(I don't know why this happens too)
Maybe I'm missing something but here is my code for the view hope it helps...
Just remark that the problem comes up when I add the material-select directive for the second time
Thanks in advance
Update 1
Just to complement If I delete the ng-model on my view the error is gone, but obviously i need the ng-model directive in order get the value from the select.
Update 2
If I initialize the options for my second select on my controller and then set it up my view with ng-options, everything runs perfect.
I hope this helps if somebody has the same but I'm still thinking this is a wrong behavior
Thanks again, let me know if I can help with something.
Controller
View
The text was updated successfully, but these errors were encountered: