Complete the code to add an inline style that sets the background color to blue.
<div [[1]]="{'background-color': 'blue'}">Hello</div>
The ngStyle directive is used in Angular to apply inline styles dynamically.
Complete the component decorator to use an external CSS file named 'app.component.css'.
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
[1]: ['./app.component.css']
})The styleUrls property in Angular component decorator links external CSS files.
Fix the error in the component decorator to properly apply inline styles.
@Component({
selector: 'app-header',
template: '<h1>Welcome</h1>',
styles: [[1]]
})The styles property expects an array of strings with CSS rules as strings.
Fill both blanks to apply a class 'highlight' using inline styles and external styles.
<div [[1]]="{'background-color': 'yellow'}" class="[2]">Text</div>
Use ngStyle for inline style binding and the class name 'highlight' for external CSS.
Fill all three blanks to define a component with inline styles, external styles, and a template.
@Component({
selector: 'app-footer',
template: [1],
styles: [[2]],
[3]: ['./footer.component.css']
})The template is a string with HTML, styles is an array of CSS strings, and styleUrls links external CSS files.