Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229599

Ionic 2 Form with ngModel

$
0
0

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 = {}
}

Viewing all articles
Browse latest Browse all 229599

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>