Local storage service with injection