industries
property are not loaded/ used by select2. It might require several manual reloads to see it, but for me it happens every 2-5 reloads.Screenshot of expected behavior:
Screenshot of faulty behavior:
The problem seems to be that sometimes the industries json is loaded after the customers json. When the customers array is repeated the industry_id's don't exist yet in the industries array and are discarded by Select2.
I believe the solution thus lies in making sure the industries array is available before the customers array get's ng-repeated. The question now is: how?