diff --git a/src/core/services/layout/layout.js b/src/core/services/layout/layout.js index 5366615b9dc..851da15d333 100644 --- a/src/core/services/layout/layout.js +++ b/src/core/services/layout/layout.js @@ -138,6 +138,7 @@ function attributeWithObserve(className, addDirectiveAsClass) { return function() { return { + restrict : 'A', compile: function(element, attr) { attributeValueToClass(null, element, attr); @@ -201,6 +202,7 @@ function attributeWithoutValue(className) { return function() { return { + restrict : 'A', compile: function(element, attr) { attributeToClass(null, element);