I am wondering what the difference is between these two examples:
export class EditorComponent {
constructor(
public _entryService: EntryService
){
console.log(this._entryService.entryData.properties);
}
}
export class EditorComponent {
_entryService;
constructor(){
this._entryService = new EntryService;
console.log(this._entryService.entryData.properties);
}
}
Is there any practical difference between the two?
I anticipate that there may be some gaps in my knowledge of basic theory here- any pointers in a direction that will help me educate myself would be appreciated- thanks!