import angularfiremodule in angular code example
Example 1: install angular fire
ng add @angular/fire
Example 2: add firebase angular
npm install firebase @angular/fire
ng add @angular/fire
npm install firebase @angular/fire