I am using Angular 2 and D3.js. I want to show a red rectangle.
It only works if I put styles in the style.css file. Check this plunkr
When
you can use
::ng-deep .bar { fill: red; }
Here you can read perfect article explaining the approach.
And... information from the Angular documentation