[Example] Add controller example

Add example showing declarative registration of
controllers with Angular. WTD-518.
This commit is contained in:
Victor Woeltjen
2014-11-04 15:28:53 -08:00
parent 0e6f419678
commit b712c9a401
3 changed files with 28 additions and 2 deletions

View File

@ -0,0 +1,21 @@
/*global define,Promise*/
/**
* Module defining ExampleController. Created by vwoeltje on 11/4/14.
*/
define(
[],
function () {
"use strict";
/**
*
* @constructor
*/
function ExampleController($scope) {
$scope.phrase = "I am a controller.";
}
return ExampleController;
}
);