You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
534 B
22 lines
534 B
import { Component, OnInit } from '@angular/core';
|
|
import { ActivatedRoute } from '@angular/router';
|
|
|
|
@Component({
|
|
selector: 'app-resume',
|
|
templateUrl: './resume.component.html',
|
|
styleUrls: ['./resume.component.css']
|
|
})
|
|
export class ResumeComponent implements OnInit {
|
|
|
|
jobIndex: Number; //set up public class member
|
|
|
|
constructor(
|
|
private route: ActivatedRoute //make URL routes available to class
|
|
) { }
|
|
|
|
ngOnInit() {
|
|
this.route.params.forEach( param => this.jobIndex = param.id )
|
|
}
|
|
|
|
}
|