Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70765

Can't I use variable inside of jquery document.getReady function?

$
0
0

@pdj wrote:


test:any="test!!!"
constructor( ... ... ) {
}
ionViewDidLoad() {
    console.log('ionViewDidLoad MainPage');
    $(() => {
     

       console.log(this.test);

    })
}

I console loged on jquery , but it always says undefined.
(()=>{} is same as (document).ready , I think.

how can I use variable declared on .ts to document.ready inside?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70765

Trending Articles



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