[Example] Add example of service registration

Add an example of registering a plain service
with Angular. WTD-518.
This commit is contained in:
Victor Woeltjen
2014-11-04 16:13:49 -08:00
parent ed4c178a76
commit 3ed3ee19d7
3 changed files with 33 additions and 4 deletions

View File

@ -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;