Getting Started with Vue.js: #9 Applying Classes with Vue

preview_player
Показать описание
A best practice is to use JavaScript to apply CSS classes and let the CSS handle styling. By doing this, we ensure a separation of duties between JavaScript and CSS:

JavaScript is responsible for adding and removing classes, CSS is responsible for styling those classes. This way, we'll never have to go digging into our JavaScript code to see if there's a specific style applied.

Рекомендации по теме
Комментарии
Автор

First view and first comment,
Add python django series please

Examji
Автор

Even playing this on 0.5 speed is hard to follow. Makes me want to give up man.. Some hopefully constructive criticism: slow down and explain things or people will only learn your code and not how to use Vue. Dani Krossing is a good example of someone who does this, he explains the concepts as you go instead of just writing code. It gives you time to not only write the code yourself, but to conceptualise it, and while you're doing that he's explaining what each thing he's doing actually means in real language.

dylhilen
join shbcf.ru