angular fireb code example Example 1: npm install @angular/fire firebase –save npm install firebase @angular/fire Example 2: ngular fire ng add @angular/fire