Angular 6 wait for observable to complete