import { HttpClient } from '@angular/common/http' ; import { Injectable } from '@angular/core' ; @ Injectable ( ) export class EditTagService { constructor ( private http ) { } public getTag ( id ) { return this . http . get ( `/tag/${ id }` ) ; } public updateTag ( data ) { return this . http . put ( `/tag/${ data . id }` , data ) ; } }