Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Last active February 18, 2017 22:26
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 matthieu-D/d1ae565908805dc124d4de6a6a8d7aa8 to your computer and use it in GitHub Desktop.
Save matthieu-D/d1ae565908805dc124d4de6a6a8d7aa8 to your computer and use it in GitHub Desktop.
export class AppComponent implements OnInit {
.
.
.
handleData(data) {
console.log('Here are the usable data', data);
// Insert Business logic here
}
handleComplete() {
console.log('Complete');
}
handleError(error) {
console.log('error:', error)
return Observable.throw(error);
}
.
.
.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment