Protect Angular SPA with Azure AD authentication

Hi,
I need to product my angular SAP with Azure Ad authentication and i need to protect my node js rest api too.

Which authentication flow should i use

“Implicit flow” or “Auth Code Flow”.

Can anyone help me to implement azure ad authentication in my angular spa and in node js rest api.