mirror of
https://github.com/nasa/openmct.git
synced 2025-06-20 08:03:49 +00:00
[Example] Add controller example
Add example showing declarative registration of controllers with Angular. WTD-518.
This commit is contained in:
21
example/builtins/src/ExampleController.js
Normal file
21
example/builtins/src/ExampleController.js
Normal file
@ -0,0 +1,21 @@
|
||||
/*global define,Promise*/
|
||||
|
||||
/**
|
||||
* Module defining ExampleController. Created by vwoeltje on 11/4/14.
|
||||
*/
|
||||
define(
|
||||
[],
|
||||
function () {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
*
|
||||
* @constructor
|
||||
*/
|
||||
function ExampleController($scope) {
|
||||
$scope.phrase = "I am a controller.";
|
||||
}
|
||||
|
||||
return ExampleController;
|
||||
}
|
||||
);
|
Reference in New Issue
Block a user