Using $http seems to have timing issue and makes an empty list
Thanks a lot for your directive, it works great except when I populate a <select> by an $htttp, in this case it seems to give some timing issue and I end up with an empty list. The selecpicker seem to be displayed with an empty list but is not refreshed properly when the data finally arrives from the server. Perhaps it's missing a watcher of some kind?
I also submitted a question on Stack Overflow, so we might also get some valid answers and help there on resolving this issue. http://stackoverflow.com/questions/28336106/angular-bootstrap-select-timing-issue-to-refresh
There is a fix available as suggested in the post referenced in your comment. This directive is very useful, but I couldn't use it as bower dependency because of this bug.