summaryrefslogtreecommitdiffstats
path: root/reporting/pages/app/scripts/directives/mydirective.js
diff options
context:
space:
mode:
Diffstat (limited to 'reporting/pages/app/scripts/directives/mydirective.js')
-rw-r--r--reporting/pages/app/scripts/directives/mydirective.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/reporting/pages/app/scripts/directives/mydirective.js b/reporting/pages/app/scripts/directives/mydirective.js
new file mode 100644
index 0000000..1d7177a
--- /dev/null
+++ b/reporting/pages/app/scripts/directives/mydirective.js
@@ -0,0 +1,18 @@
+'use strict';
+
+/**
+ * @ngdoc directive
+ * @name opnfvApp.directive:myDirective
+ * @description
+ * # myDirective
+ */
+angular.module('opnfvApp')
+ .directive('myDirective', function () {
+ return {
+ template: '<div></div>',
+ restrict: 'E',
+ link: function postLink(scope, element, attrs) {
+ element.text('this is the myDirective directive');
+ }
+ };
+ });