Angular 2 Class & Style Binding Tutorial

preview_player
Показать описание


We're going to learn how to dynamically control CSS classes and inline CSS styles with Angular 2. We'll also take a look at ngStyle and ngClass for controlling multiple CSS classes and inline style properties.

Written tutorial:

- - - - - - - - - - - - - - - - - - - - - -

Subscribe for NEW VIDEOS weekly!

^-Chat with me and others

- - - - - - - - - - - - - - - - - - - - - -

Come to my discord server or add me on social media and say Hi!
Рекомендации по теме
Комментарии
Автор

Thanks, I was struggling on this topic, but now you helped me understand how Angular can dynamically add classes

MilesRoseProductions
Автор

This is the best playlist tutorials for angular2 so far!
Thank you

sharkoman
Автор

best angular 2 playlist so far. Because of that you will win my subscription to your website aswell and start buying your course there.

songlee
Автор

Thanks so much for sharing, this is just what I was looking for.

MrJohn
Автор

Great Simon. Very logical and simple, and this is championship

beataj
Автор

I really like your playlist so far!

Keep it :)

All best :)

TheKkkmedia
Автор

Hi Junaid,
Awesome Video, But I need some help on this part.
I have an http object ex:
public postCardData: any[] = [{ postClass: 'latestPost' }, { postClass: 'youtubePost' }];

I want to append this postClass string as a class in *ngFor loop . If I am using interpolation, it throws an error... :(
I don't know what to do. Please help.

GautamKumar-uideveloper