From b842642b574a2b95c53b791308ed1bf8ff9d304d Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Wed, 15 Jun 2011 22:31:40 -0700 Subject: docs - stripping extra new lines --- ...dev_guide.compiler.widgets.creating_widgets.ngdoc | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'docs/content/guide/dev_guide.compiler.widgets.creating_widgets.ngdoc') 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 62edd04f..906e0127 100644 --- a/docs/content/guide/dev_guide.compiler.widgets.creating_widgets.ngdoc +++ b/docs/content/guide/dev_guide.compiler.widgets.creating_widgets.ngdoc @@ -3,24 +3,19 @@ @name Developer Guide: Angular HTML Compiler: Widgets: Creating Custom Widgets @description - When you create your own widgets, you must set up your own namespace for them. (See dev_guide.bootstrap Initializing Angular} for information about namespaces in angular.) - Let's say we would like to create a new element type in the namespace `my` that can watch an expression and `alert()` the user with each new value: -
 // An element widget
 
 
- You can implement `my:watch` like this: -
 angular.widget('my:watch', function(compileElement) {
  var compiler = this;
@@ -35,15 +30,11 @@ angular.widget('my:watch', function(compileElement) {
 
- - # Creating a Custom Attribute Widget - Let's implement the same widget as in the example in Defining an Element Widget, but this time as an attribute that can be added to any existing DOM element: -
 // An attribute widget (my-watch) in a div tag
 
text
@@ -62,11 +53,8 @@ angular.widget('@my:watch', function(expression, compileElement) {
- - # Live Example of a Custom Element Widget -