I need to be able to add for example "content editable" to elements, based on a boolean variable on a scope.
Example use:
<h1 attrs="{'contenteditable=\"true\"': editMode}">{{content.title}}</h1>
Would result in contenteditable=true being added to the element if $scope.editMode was set to true. Is there some easy way to implement this ng-class like attribute behaviour? I'm considering writing a directive and sharing if not.