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();
});
use arrow function like bellow example
myFunction()
{
console.log('function called');
}
Use like bellow
Comments
Post a Comment