Angular - Animations
Which is the correct syntax to define a state named
active with a red background color?active with a red background color?state syntaxstate function takes a name string and a style function with an object of CSS properties. state('active', style({ backgroundColor: 'red' })) correctly uses this syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions