You are here

function angularjs_add_partial in AngularJS 7

Adds an Angular JS template partial to be sent to the page. Takes either a text template or a render array

Parameters

string $name :

mixed $output :

Return value

array

2 calls to angularjs_add_partial()
angularjs_map_map in modules/angularjs_map/angularjs_map.module
angularjs_page_alter in ./angularjs.module
Implements hook_page_alter

File

./angularjs.module, line 610

Code

function angularjs_add_partial($name = NULL, $output = NULL) {
  $partials =& drupal_static(__FUNCTION__, array());
  if (NULL != $name) {
    $partials[$name] = $output;
  }
  return $partials;
}