openmct/example/builtins/src/ExampleService.js
Victor Woeltjen 3ed3ee19d7 [Example] Add example of service registration
Add an example of registering a plain service
with Angular. WTD-518.
2014-11-04 16:13:49 -08:00

25 lines
458 B
JavaScript

/*global define,Promise*/
/**
* Module defining ExampleService. Created by vwoeltje on 11/4/14.
*/
define(
[],
function () {
"use strict";
/**
*
* @constructor
*/
function ExampleService() {
return {
getMessage: function () {
return "I heard this from a service";
}
};
}
return ExampleService;
}
);