mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-01 19:54:45 +00:00
chore(directives): add a todo for ng:style
This commit is contained in:
parent
ca1e45beaf
commit
21b2a5bd21
1 changed files with 2 additions and 0 deletions
|
|
@ -804,6 +804,8 @@ angularDirective("ng:hide", function(expression, element){
|
||||||
</doc:example>
|
</doc:example>
|
||||||
*/
|
*/
|
||||||
angularDirective("ng:style", function(expression, element){
|
angularDirective("ng:style", function(expression, element){
|
||||||
|
// TODO(i): this is inefficient (runs on every $digest) and obtrusive (overrides 3rd part css)
|
||||||
|
// we should change it in a similar way as I changed ng:class
|
||||||
return function(element){
|
return function(element){
|
||||||
var resetStyle = getStyle(element);
|
var resetStyle = getStyle(element);
|
||||||
this.$watch(function(scope){
|
this.$watch(function(scope){
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue