Coding task · Vue.js course · Module 2: Template Syntax

Practice: Style Binding

Style dynamically like the system adjusting display parameters on Mars.

Task

Use :style to dynamically set colors and font size.