A sample application that takes a user-supplied color and dynamically changes the color of an enclosing div.
- Uses Angular's built-in ngStyle directive.
- Uses a custom directive.
A sample application that takes a user-supplied color and dynamically changes the color of an enclosing div.