What is the function of resolve of angularjs? April 20, 2019 node.js, question I often see people returning factory data in resolve. Then inject it into the controller.Why not inject factory directly into the controller? This is to make the controller more concise, resolve. http://www.html-js.com/article/Front-end-source-code-analysis-original-uirouter-source-code-analysis The link ui-router is very good for details.