Questions tagged [angular2viewencapsulation]
31 questions
1
vote
1 answer
Scope CSS to module only in Angular 5 to prevent bleeding into other parts of app
How do I scope CSS to only a module in Angular? When I load a module lazily, and have ViewEncapsulation.None in that module, the CSS bleeds into other parts of my app. Any idea how to prevent that, or keep that CSS only for that module in Angular 5?

james Makinde
- 943
- 3
- 17
- 36
1
vote
1 answer
ViewEncapsulation creating problems while styling highcharts
I am using a couple of charts in a single view, each chart being its own component. I have a LineChartComponent and a XRangeChartComponent. I am using a styles file with XRangeChartComponent and overriding some classes. But the styles are not…

Sayak Mukhopadhyay
- 1,332
- 2
- 19
- 34
1
vote
1 answer
Setting background in Angular2 with encapsulation set as none
I'm trying to set an image to the background of an entire page the following way:
app.component.html
app.component.ts (note: encapsulation set…
Hello, world

user3335607
- 258
- 3
- 14
1
vote
0 answers
How to apply external CSS to an external component within my angular component or using external CSS to the nested external component only
I am a beginner, terminologies used here might be not properly applied.
My app has three components. One external component clr-datagrid from Project Clarity
…

SayedRakib
- 181
- 1
- 2
- 10
1
vote
0 answers
Styling shadowed elements from outer world using Stylus/WebStorm
In Angular 2 I am trying to style an instance of a component from the stylesheet of its container
some text
Obviously, I have ViewEncapsulation.None set in…

user776686
- 7,933
- 14
- 71
- 124
0
votes
1 answer