How to show api data in angular using restanular

37 Views Asked by At

I am new at angular I want to show live scores of sports but I don't know how to fetch API data in angular frontend I am getting all data from API and I want to fetch whole data and show on frontend using restangular or HTTP request can someone me by telling how should I start with this please.

import { environment } from './../environments/environment';

export function RestangularConfigFactory(RestangularProvider, _persist) {
    if (environment.production) {
        RestangularProvider.setBaseUrl('https://cricapi.com/api/matches?apikey=<API KEY>');
    }
0

There are 0 best solutions below