Include of non ionic css

0

I need to call a css block, depending on the condition, on an ionic view. I'm trying to do with ng-include, but it does not work.

<style type="text/css" ng-include="templates/style.css"></style>

or with div

<div ng-include="templates/style.css"></div>
    
asked by anonymous 22.02.2018 / 13:55

1 answer

0

I was able to put the css inside a div, so

<div><style type="text/css">  //css aqui </style></div>

And calling with ng-include, before was passing the wrong address, with the right address worked:

<div ng-include="'../../templates/template01.html'"></div>
    
22.02.2018 / 14:51