Angulyar adds one style tag, how to define everything in one file?
I use such modules: ngAnimate, ngAria, ngMessages, ngRoute, ngMaterial, textAngular, md.data.table
Angulyar adds one style tag, how to define everything in one file?
I use such modules: ngAnimate, ngAria, ngMessages, ngRoute, ngMaterial, textAngular, md.data.table
When connecting, some angular modules check which mode of operation is selected and add inline
styles depending on the mode, which allows not to connect a separate css file for the module.
To customize the behavior in the angular there is a directive ngCsp
When used with the no-inline-style
parameter, for example
<html ng-app ng-csp="no-inline-style">
style
tags will stop being added, but it will be necessary to connect the corresponding css file, which is usually located in the same place as the angular module itself.
Source: https://ru.stackoverflow.com/questions/544708/
All Articles