Skip to content

Instantly share code, notes, and snippets.

@stevermeister
Created June 30, 2017 06:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevermeister/9eb766ea93950ae844155e85adf2b62a to your computer and use it in GitHub Desktop.
Save stevermeister/9eb766ea93950ae844155e85adf2b62a to your computer and use it in GitHub Desktop.
this.name.statusChanges
.distinctUntilChanged()
.filter(status => status === 'INVALID')
.subscribe(() => {
console.log(this.name.errors);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment