I am currently learning Angular 2. I understood how to use the angular renderer to set an ElementStyle, but now i would like to use the Angular renderer function
setElementClass(renderElement: any, className: string, isAdd: boolean) : void
My question is how can I import a css class to my attribute directive ? Do I have to convert my css class to Json?, Or can I somehow add an css class to my @ngModule ?