angular 6 call function on div load