I a m a little stuck with a problem, probably some syntax I can't find on the internet.
I created an angular directive that receives a class name as a scope variable. In the tamplate I want to add the given classname and another class as conditional. something like that:
app.directive('MyDirective', function () {
return {
restrict: 'E',
scope: {
className: '=',
},
template: "<div ng-class="className, 'otherClass':{expression}"></div>"
}
});
Thanks :)