You are here

function hook_angularjs_directives_alter in AngularJS 7

Alter the list of directives exposed by any module

Parameters

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

string $version: The version of AngularJS

Related topics

File

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