mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 21:27:52 +00:00
[Example] Add example bundle for built-ins
Add bundle which will serve as an example of how to declare the presence of Angular built-ins as extensions which will be recognized by the framework layer. Also useful for generally verifying that functionality provided by framework layer provides sufficient support for other bundles to expose application features. WTD-518.
This commit is contained in:
parent
86df248096
commit
b383be0711
8
example/builtins/README.md
Normal file
8
example/builtins/README.md
Normal file
@ -0,0 +1,8 @@
|
||||
This bundle is intended to serve as an example of registering
|
||||
extensions which are mapped directly to built-in Angular features.
|
||||
|
||||
These are:
|
||||
* Controllers
|
||||
* Directives
|
||||
* Routes
|
||||
* Services
|
20
example/builtins/bundle.json
Normal file
20
example/builtins/bundle.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "Angular Built-ins Example",
|
||||
"description": "Example showing how to declare extensions with built-in support from Angular.",
|
||||
"extensions": {
|
||||
"controllers": [
|
||||
|
||||
],
|
||||
"directives": [
|
||||
|
||||
],
|
||||
"routes": [
|
||||
{
|
||||
"templateUrl": "templates/example.html"
|
||||
}
|
||||
],
|
||||
"services": [
|
||||
|
||||
]
|
||||
}
|
||||
}
|
1
example/builtins/res/templates/example.html
Normal file
1
example/builtins/res/templates/example.html
Normal file
@ -0,0 +1 @@
|
||||
<p>Hello, world! I am the default route.</p>
|
Loading…
Reference in New Issue
Block a user