@mediaQuery in angularjs driver

2

It is possible within

$scope.body = {

  'background-image':'url("../images/fondo_mix.png")',
  'background-size': 'contain',
  'height': '200vh',
  'background-attachment':'fixed'      
}

add a media query?

    
asked by Hernan Humaña 30.12.2016 в 17:26
source

1 answer

2

First of all I recommend using boostrapp and you save the responsive problem.

Responding to your question, because if you can add a half query, but with ng-class instead of adding it where you are doing it.

@media all and (max-width: 600px) {
   .positivo {
  color: #33f;
}
}
  <p ng-class="{positivo}">
    En el acumulador llevamos <span>{{vm.total}}</span>
  </p>  
    
answered by 30.12.2016 / 19:56
source