import { Injectable } from '@angular/core' ; import { ServiceFirebase } from '../core/servicefirebase.service' ; import { Departamento } from '../models/departamento.model' ; import { AngularFirestore } from '@angular/fire/firestore' ; @ Injectable ( { providedIn : 'root' } ) export class DepartamentoService extends ServiceFirebase < Departamento > { constructor ( firestore ) { super ( Departamento , firestore , 'departamentos' ) ; } }