ttt before angular
refract from vanilla JS to Angular and firebase.