You are here

function hook_angularjs_services_alter in AngularJS 7

Alter the list of services exposed by any module

Parameters

array $services: The list of services exposed by any module

string $version: The version of AngularJS

Related topics

File

./angularjs.api.inc, line 135
This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.

Code

function hook_angularjs_services_alter(&$services, $version) {
  foreach ($services as $key => &$value) {
    $value['scope'] = 'footer';
  }
}