import { Injectable } from "@angular/core"; @Injectable({ providedIn: 'root' }) export class SearchState { search:string = ''; }