Angular service containing http get call not working with ng-repeat

前端 未结 4 804
情深已故
情深已故 2021-01-21 17:22

I have an angular controller that calls a service. The service is responsible for returning data from a json file.

controller:

function projectController         


        
4条回答
  •  耶瑟儿~
    2021-01-21 17:57

    If you want data to be loaded before the page Is loaded you can use 'resolve' property For the module. Have a look in the docs for details.

提交回复
热议问题