I'm trying to figure out the best to handle working with async data.
Basically, I receive data to my controller doing:
UserResource.query(function (res) {
$scope.user = res;
});
This works fine, but there's flickering. For example, if I'm using this along with another directive (such as bootstrap select), it will render the select first (with no data), then it will show it correctly.
Is there an elegant way to handle this, without creating lots of additional parameters simply to check values and do show/hides with an ng-switch.
Any tips/best practice suggestions would be great!
Thank you