Ways to connect to Database through Angular

Can anyone help me out in how many ways we can connect to Databases in angular 4?