Angular Data table is working fine with static data but not with api data

I am implementing Angular data table in my project but problem
is that when implementing with static data its working fine but
when working with api data or dynamic data its not working
fine.
Its loading data in datatable but search and pagination is not
showing. I have tried a lot of online solutions but search and
pagination is not showing.

Can any body tell me the exact cause and its solutions. I am
using bootstraps and angular 17 and i have implemented all
necessary steps and its also working fine with static data.
Thanks.