Angular / TypeScript - Call a function after another one has been completed Angular / TypeScript - Call a function after another one has been completed typescript typescript