Skip to content

Instantly share code, notes, and snippets.

@cyrilletuzi
Last active April 7, 2018 09:46
Show Gist options
  • Save cyrilletuzi/8bb6dfc542ba311826499d73ca1e5e36 to your computer and use it in GitHub Desktop.
Save cyrilletuzi/8bb6dfc542ba311826499d73ca1e5e36 to your computer and use it in GitHub Desktop.
this.localStorage.setItem('color', 'red').subscribe(() => {
// Done
}, () => {
// Error
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment