Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import { LocalStorage } from '@ngx-pwa/local-storage';
@Injectable()
export class YourService {
constructor(protected localStorage: LocalStorage) {}
ngOnInit() {
this.localStorage.setItem('lang', 'fr').subscribe(() => {
// Done
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment