Skip to content

Instantly share code, notes, and snippets.

@Abiwax
Created January 27, 2018 18:41
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 Abiwax/efc96e5cf1c33ecea4a32e3a7304e1a5 to your computer and use it in GitHub Desktop.
Save Abiwax/efc96e5cf1c33ecea4a32e3a7304e1a5 to your computer and use it in GitHub Desktop.
homepage.ts
// go to map page
goToMap(job: Job) {
this.jobset.jobInfo = job;
this.router.navigate(['map']);
}
// On form submit
formSubmit() {
this.apiProvider.getCareerJetResults(this.model.search, this.model.location)
.subscribe((jobs) => {
this.jobset.jobs = jobs;
this.jobs = this.jobset.jobs;
},
(error) => {
this.error_message = <string>error;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment