From aa86f6a6a64c7c651414d5ef0bae3c328bcab387 Mon Sep 17 00:00:00 2001 From: Vladimir Shafikov Date: Mon, 10 Mar 2014 12:40:18 +0200 Subject: [PATCH] Fixed broken binding once for attributes. Previous version didn't work with {{}} expressions and didn't work correctly with latest Angular version. This version: - Binds attributes correctly. - Works with {{}} markup. If I have more spare time on work, I will write tests for this directive. --- .../bind-attr-once/bind-attr-once.js | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/directives/bind-attr-once/bind-attr-once.js b/src/directives/bind-attr-once/bind-attr-once.js index 2a87533..51418b5 100644 --- a/src/directives/bind-attr-once/bind-attr-once.js +++ b/src/directives/bind-attr-once/bind-attr-once.js @@ -2,23 +2,23 @@ /* * Binds the attributes to the expression once at startup, - * Usage: + * Usage: + * + * Real example: + * e.g. we have this data: obj={url: 'http://google.com', urlTitle: 'Go Search'} + *