From 55027132f3d57e5dcf94683e6e6bd7b0aae0087d Mon Sep 17 00:00:00 2001
From: Vojta Jina
Date: Fri, 23 Mar 2012 15:48:51 -0700
Subject: refactor(ngBindAttr): remove
Breaks ng-bind-attr directive removed
---
src/AngularPublic.js | 1 -
src/directive/ngBind.js | 95 --------------------------------------------
test/BinderSpec.js | 37 -----------------
test/directive/ngBindSpec.js | 33 ---------------
4 files changed, 166 deletions(-)
diff --git a/src/AngularPublic.js b/src/AngularPublic.js
index 65ebe3f0..9a0e1977 100644
--- a/src/AngularPublic.js
+++ b/src/AngularPublic.js
@@ -74,7 +74,6 @@ function publishExternalAPI(angular){
ngBindHtml: ngBindHtmlDirective,
ngBindHtmlUnsafe: ngBindHtmlUnsafeDirective,
ngBindTemplate: ngBindTemplateDirective,
- ngBindAttr: ngBindAttrDirective,
ngClass: ngClassDirective,
ngClassEven: ngClassEvenDirective,
ngClassOdd: ngClassOddDirective,
diff --git a/src/directive/ngBind.js b/src/directive/ngBind.js
index 23588de5..32be2f4b 100644
--- a/src/directive/ngBind.js
+++ b/src/directive/ngBind.js
@@ -153,98 +153,3 @@ var ngBindTemplateDirective = ['$interpolate', function($interpolate) {
});
}
}];
-
-
-/**
- * @ngdoc directive
- * @name angular.module.ng.$compileProvider.directive.ng-bind-attr
- * @restrict A
- *
- * @description
- * The `ng-bind-attr` attribute specifies that a
- * {@link guide/dev_guide.templates.databinding databinding} should be created between a particular
- * element attribute and a given expression. Unlike `ng-bind`, the `ng-bind-attr` contains one or
- * more JSON key value pairs; each pair specifies an attribute and the
- * {@link guide/dev_guide.expressions expression} to which it will be mapped.
- *
- * Instead of writing `ng-bind-attr` statements in your HTML, you can use double-curly markup to
- * specify an {{expression}} for the value of an attribute.
- * At compile time, the attribute is translated into an
- * ``.
- *
- * The following HTML snippet shows how to specify `ng-bind-attr`:
- *
- *
- * During compilation, the template with attribute markup gets translated to the ng-bind-attr form
- * mentioned above.
- *
- * _Note_: You might want to consider using {@link angular.module.ng.$compileProvider.directive.ng-href ng-href} instead of
- * `href` if the binding is present in the main application template (`index.html`) and you want to
- * make sure that a user is not capable of clicking on raw/uncompiled link.
- *
- *
- * @element ANY
- * @param {string} ng-bind-attr one or more JSON key-value pairs representing
- * the attributes to replace with expressions. Each key matches an attribute
- * which needs to be replaced. Each value is a text template of
- * the attribute with the embedded
- * {{expression}}s. Any number of
- * key-value pairs can be specified.
- *
- * @example
- * Enter a search string in the Live Preview text box and then click "Google". The search executes instantly.
-
-
-
-
- Google for:
-
-
- Google
- (ng-bind-attr) |
- Google
- (curly binding in attribute val)
-