start using refactored models in angular
moving angular code to typescript