Calling function from constructor


My code looks something like this:

templateUrl: ‘build/pages/myPage/myPage.html’

export class Login {
constructor() { 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?


it should be:

constructor() {


Thanks for the reply, it works!