From a6c45c3e66fc0ea3baaa908c90720bcf22c193d7 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Sun, 6 Feb 2011 22:51:33 -0800 Subject: add description for ng:controller example --- src/directives.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/directives.js b/src/directives.js index 5ca7c2ec..545a9e08 100644 --- a/src/directives.js +++ b/src/directives.js @@ -46,6 +46,12 @@ angularDirective("ng:init", function(expression){ * @param {expression} expression to eval. * * @example + * Here is a simple form for editing the user contact information. Adding, removing clearing and + * greeting are methods which are declared on the controller (see source tab). These methods can + * easily be called from the angular markup. Notice that the scope becomes the controller's class + * this. This allows for easy access to the view data from the controller. Also notice that any + * changes to the data are automatically reflected in the view without the need to update it + * manually.