aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide/dev_guide.compiler.widgets.creating_widgets.ngdoc
diff options
context:
space:
mode:
authorIgor Minar2011-06-06 22:02:30 -0700
committerIgor Minar2011-06-06 23:10:30 -0700
commitc35b0a7907de1535269876668c345ce944681804 (patch)
treea3ba548369ca65db790809197196ae946cc93a18 /docs/content/guide/dev_guide.compiler.widgets.creating_widgets.ngdoc
parent805bb5bb6e5842a5760976a446074d553609f5b6 (diff)
downloadangular.js-c35b0a7907de1535269876668c345ce944681804.tar.bz2
yet another docs batch
Diffstat (limited to 'docs/content/guide/dev_guide.compiler.widgets.creating_widgets.ngdoc')
-rw-r--r--docs/content/guide/dev_guide.compiler.widgets.creating_widgets.ngdoc14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/content/guide/dev_guide.compiler.widgets.creating_widgets.ngdoc b/docs/content/guide/dev_guide.compiler.widgets.creating_widgets.ngdoc
index 15ac368c..62edd04f 100644
--- a/docs/content/guide/dev_guide.compiler.widgets.creating_widgets.ngdoc
+++ b/docs/content/guide/dev_guide.compiler.widgets.creating_widgets.ngdoc
@@ -51,13 +51,13 @@ an attribute that can be added to any existing DOM element:
You can implement `my:watch` attribute like this:
<pre>
angular.widget('@my:watch', function(expression, compileElement) {
-var compiler = this;
-return function(linkElement) {
-var currentScope = this;
-currentScope.$watch(expression, function(value){
- alert(value);
-});
-};
+ var compiler = this;
+ return function(linkElement) {
+ var currentScope = this;
+ currentScope.$watch(expression, function(value){
+ alert(value);
+ });
+ };
});
</pre>