how to call angular function inside document.ready or setTimeout

use arrow function like bellow example

myFunction()

{

    console.log('function called');

}

Use like bellow

$( document ).ready(() =>
{
this.myFunction();
});

Comments

Popular posts from this blog

how to save images with angular nodejs

How to restrict your logged In page in angular (authentication guard)

How to notify about data update to other component.