You are here

function angularjs_template_output in AngularJS 7

Sends AngularJS template to browser

Parameters

string $var :

File

./angularjs.module, line 590

Code

function angularjs_template_output($var) {
  drupal_add_http_header('Content-Type', 'text/html');

  // Add new JS.
  echo drupal_get_js();
  if (isset($var)) {
    echo $var;
  }
}