Angularjs uses the result of the first http request to initiate a second http request. I don’t want to write it in a nested manner. How can I implement it elegantly?
迷茫2017-05-15 16:56:48
To use promise
, you can read an article I wrote before, I hope it can help you, promise.
怪我咯2017-05-15 16:56:48
http://stackoverflow.com/questions/9432587/what-is-the-correct-way-to-chain-async-calls-in-javascript