From b383be071119daa2dca31654543ed99dee656bd0 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Tue, 4 Nov 2014 14:40:04 -0800 Subject: [PATCH] [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. --- example/builtins/README.md | 8 ++++++++ example/builtins/bundle.json | 20 ++++++++++++++++++++ example/builtins/res/templates/example.html | 1 + 3 files changed, 29 insertions(+) create mode 100644 example/builtins/README.md create mode 100644 example/builtins/bundle.json create mode 100644 example/builtins/res/templates/example.html diff --git a/example/builtins/README.md b/example/builtins/README.md new file mode 100644 index 0000000000..7e34db8b63 --- /dev/null +++ b/example/builtins/README.md @@ -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 \ No newline at end of file diff --git a/example/builtins/bundle.json b/example/builtins/bundle.json new file mode 100644 index 0000000000..5aa0f821a0 --- /dev/null +++ b/example/builtins/bundle.json @@ -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": [ + + ] + } +} \ No newline at end of file diff --git a/example/builtins/res/templates/example.html b/example/builtins/res/templates/example.html new file mode 100644 index 0000000000..2aceaa7d30 --- /dev/null +++ b/example/builtins/res/templates/example.html @@ -0,0 +1 @@ +

Hello, world! I am the default route.

\ No newline at end of file