/angular-pagespeed-insights

AngularJS 1.x service for Google Pagespeed Insights API

Primary LanguageJavaScript

angular-pagespeed-insights

AngularJS 1.x service for Google Pagespeed Insights API

Docs about Google Pagespeed Insights

Example

Just add the service as dependency to your controller and make a call. You need to obtain an API-key before.

NGPagespeedInsights.getSiteInsights('http://example.com', '')
.then(
  function( result ) {
    $scope.result = result;
  }
);

Demo