How to Improve Angular Coding