You are here

function hook_angularjs_controllers in AngularJS 7

Provide a list of controllers exposed by this module

Parameters

string $version: The version of AngularJS being used on the site

Return value

array An array containing AngularJS controllers in the format provided to drupal_add_js

Related topics

File

./angularjs.api.inc, line 30
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() {
  return array(
    drupal_get_path('angularjs') . '/js/controllers.js' => array(),
  );
}