Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 21b2a5b

Browse files
committed
chore(directives): add a todo for ng:style
1 parent ca1e45b commit 21b2a5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/directives.js

+2
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,8 @@ angularDirective("ng:hide", function(expression, element){
804804
</doc:example>
805805
*/
806806
angularDirective("ng:style", function(expression, element){
807+
// TODO(i): this is inefficient (runs on every $digest) and obtrusive (overrides 3rd part css)
808+
// we should change it in a similar way as I changed ng:class
807809
return function(element){
808810
var resetStyle = getStyle(element);
809811
this.$watch(function(scope){

0 commit comments

Comments
 (0)