I have an angular controller that calls a service. The service is responsible for returning data from a json file.
controller:
function projectController
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.