Angular 4/5 override class in body tag (Shadow Piercing combinators approach)
In angular component CSS styles are encapsulated into the component’s view and don’t affect the rest of the application; usually this is the behaviour that you want however sometimes it’s useful to be able to affect tags outside the component, for example the body tag…
Angular2 prevent ngboopstrap dialogs to close when clicking outside
The default behaviour for bootstrap modal dialogs is to close when you click outside the dialog however this is not always the desired behaviour When using Bootstrap 4 without the angular wrapper you need to add the data-backdrop=’static’ and data-keyboard=”false” to the button in order…