angular 6 call function after load