refactoring of angular project