angular_js_example-8.x-1.x-dev/angular_js_example.module
angular_js_example.module
<?php
/**
* @file
* This module provide angular js example.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function angular_js_example_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.angular_js_example':
$output = t("This is simple example of angular js.");
$output .= t("How we can add records in db and can show through angular js");
return $output;
}
}
/**
* Implements hook_theme().
*/
function angular_js_example_theme() {
return [
'angularjs_form' => [
'template' => 'angularjs-form',
'variables' => [],
],
];
}
