Angular 6 - why is my component property (and thus console.log() value) still undefined after my API call method? : export class CaseStudyDetailComponent implements OnInit {

    casestudy: CaseStudy;

    constructor ( private caseStudyService: CaseStudyService, private route: ActivatedRoute, public titleService: Title ) { }

    ngOnInit() {

        this.route.params.subscribe((params: { Handle: string }) => {
            this.caseStudyService.getCaseStudy(params.Handle).subscribe(casestudy => this.casestudy = casestudy);
        });
        console.log(this.casestudy);
    }
}