I have created 3 files #services #environment #Angular #component
I have defined a public api to access data that was defined in environment.ts file. later created a service to call from the component.
the function to call api was called from on load of the page ngOnint.
Public API :'https://api.coinbase.com/v2/currencies'
Public API Page : https://mixedanalytics.com/blog/list-actually-free-open-no-auth-needed-apis/.
import { HttpClientModule } from '@angular/common/http';
Download
0 formats
No download links available.
SERVICES IN ANGULAR | How to integrate Service in integration Service Setup in Angular | NatokHD