updated route resolve function to use long-form angular DI syntac