Angular does not connect to the DB ever. It is a front-end framework not a back-end.
firebase firestore and many others
Firebase firestore serve as the back-end. In nopcommerce .net core with sql server serve the back-end.
Plus firebase and firestore are not relational databases like sql server. They are no sql databases.