mirror of
https://github.com/nasa/openmct.git
synced 2025-06-20 08:03:49 +00:00
[Example] Add example of service registration
Add an example of registering a plain service with Angular. WTD-518.
This commit is contained in:
@ -12,8 +12,8 @@ define(
|
||||
*
|
||||
* @constructor
|
||||
*/
|
||||
function ExampleController($scope) {
|
||||
$scope.phrase = "I am a controller.";
|
||||
function ExampleController($scope, exampleService) {
|
||||
$scope.phrase = exampleService.getMessage();
|
||||
}
|
||||
|
||||
return ExampleController;
|
||||
|
Reference in New Issue
Block a user