refactored angular configuration