Adds correct use of resolve directive