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 export data to excel sheet with colors and style in angular.

How to add splash screen and app icon with ionic capacitor angular android app