chore(): move the code about ngResource to another file