mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 21:53:08 +00:00
3ed3ee19d7
Add an example of registering a plain service with Angular. WTD-518.
31 lines
848 B
JSON
31 lines
848 B
JSON
{
|
|
"name": "Angular Built-ins Example",
|
|
"description": "Example showing how to declare extensions with built-in support from Angular.",
|
|
"sources": "src",
|
|
"extensions": {
|
|
"controllers": [
|
|
{
|
|
"key": "ExampleController",
|
|
"implementation": "ExampleController.js",
|
|
"depends": [ "$scope", "exampleService" ]
|
|
}
|
|
],
|
|
"directives": [
|
|
{
|
|
"key": "exampleDirective",
|
|
"implementation": "ExampleDirective.js"
|
|
}
|
|
],
|
|
"routes": [
|
|
{
|
|
"templateUrl": "templates/example.html"
|
|
}
|
|
],
|
|
"services": [
|
|
{
|
|
"key": "exampleService",
|
|
"implementation": "ExampleService.js"
|
|
}
|
|
]
|
|
}
|
|
} |