search

Home  >  Q&A  >  body text

angular.js - How to solve angularjs ui-router resolve unpr?

resolve injection will cause unpr, how to solve it

世界只因有你世界只因有你2761 days ago1122

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-06-22 11:55:04

    Ask and answer your own questions, there are two situations:

    1. Use component to jump to the page. To inject, use bindings:{data: '<'} in the component configuration.

    2. Use template and controller to jump, you cannot write html in ng-controller="xxx"

    reply
    0
  • Cancelreply