refactor with angular-fullstack