I am working with a binding parameter eid: '@'
Inside my constructor, you will find the following method:
this.$onInit = () => {
console.log('eid: ', this.eid)
}
console.log("eid in another section: ", this.eid)
Upon running this code (after entering a specific page within my app), I notice the following output in the console:
eid in another place: undefined
eid: 1
Is there a way for me to access the eid
variable outside of the onInit
function?