Last active
February 18, 2017 22:26
-
-
Save matthieu-D/d1ae565908805dc124d4de6a6a8d7aa8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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