You are here

function hook_angularjs_controllers_alter in AngularJS 7

Alter the list of controllers exposed by any module

Parameters

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

string $version: The version of AngularJS

Related topics

File

./angularjs.api.inc, line 90
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_controllers_alter(&$controllers, $version) {
  foreach ($controllers as $key => &$value) {
    $value['scope'] = 'footer';
  }
}