import { Injectable } from '@angular/core' ; @ Injectable ( ) export class StateService { private _message = 'Hello Message' ; getMessage ( ) { return this . _message ; } ; setMessage ( newMessage ) { this . _message = newMessage ; } ; }