boruchsiper
boruchsiper

Reputation: 2028

loading 700 ng-options inside ng-repeat with 200 records, browser crash

I have an ng-repeat with a a few hundred items. Within each item I'm loading a select element with 700 options. This is a bit too much for the browser.

Does anyone have a solution for this? Is there a load on demand directive out there?

Upvotes: 0

Views: 161

Answers (1)

Arnaud Gueras
Arnaud Gueras

Reputation: 2062

Use a custom angular select directive that generate options only if you click on it. Like

Upvotes: 2

Related Questions