mirror of
https://github.com/nasa/openmct.git
synced 2025-06-13 04:38:15 +00:00
[Example] Add example using directives
Add example of binding a directive with Angular using declarative syntax. WTD-518.
This commit is contained in:
23
example/builtins/src/ExampleDirective.js
Normal file
23
example/builtins/src/ExampleDirective.js
Normal file
@ -0,0 +1,23 @@
|
||||
/*global define,Promise*/
|
||||
|
||||
/**
|
||||
* Module defining ExampleDirective. Created by vwoeltje on 11/4/14.
|
||||
*/
|
||||
define(
|
||||
[],
|
||||
function () {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
*
|
||||
* @constructor
|
||||
*/
|
||||
function ExampleDirective() {
|
||||
return {
|
||||
template: "And this came from a directive."
|
||||
};
|
||||
}
|
||||
|
||||
return ExampleDirective;
|
||||
}
|
||||
);
|
Reference in New Issue
Block a user