DEV Community

Discussion on: Angular: Binding end to end

Collapse
 
balastrong profile image
Leonardo Montini • Edited

Thanks for the article!

Let me share a little feedback on the code blocks, I think for a better readability you should add the language for highlight, by adding the language tag at the end of the triple backtick.

Snippet

Snippets will be more colorful and easier to read! :D

<p [class.red-color]="isSingle">Single Class binding</p>

 <p [class]="'blue-color skyblue-background'">Multi Class string binding</p>

 <p
    [class]="{
      'blue-color': isBlueColor,
      'skyblue-background': isSkyblueBackground
    }">
    Multi Class object binding
 </p>

 <p [class]="['blue-color', 'skyblue-background']">
    Multi Class array binding
 </p>

Enter fullscreen mode Exit fullscreen mode
Collapse
 
urstrulyvishwak profile image
Kurapati Mahesh

I forgot to add. Thank you. I will update.