import { HttpClient } from '@angular/common/http' ; import { Injectable } from '@angular/core' ; @ Injectable ( ) export class AddTagService { constructor ( private http ) { } public addTag ( data ) { return this . http . post ( '/tag' , data ) ; } }