lazy loading multiple files

this is one possible way, another would be to define each file as a separate variable inside resolve attribute, that way the controller would be waiting for all the promises inside resolve