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

Calling function from constructor

$
0
0

@polska03 wrote:

My code looks something like this:

@Page({
templateUrl: 'build/pages/myPage/myPage.html'
})

export class Login {
constructor() { myFunction(); }
myFunction(){
}
}

When I call myFunction from inside of the constructor it tells me the function is not defined? How can I call the function from the constructor?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



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