hi @healer12
you are using let keyword inside a method called editProfile(). let keyword is block scoped, the scope of that variable (dataProfile) is limited to editProfile method. you couldn’t access dataProfile outtside of editProfile method. that is why it’s says it is undefined.
declare dataProfile publicly.
export class somecomponent {
public dataProfile: any = {}
}