Hi , Is it possible in ionic to change the scope color in if conditional statement? When I enter a 1 value the colorChange turns into RED if not it turns into GREEN. Help me Thanks
<input type="text" ng-model="text">
{{colorChange}}
.controller
$scope.colorChange = "Color"
if(text== 1){
$scope.colorChange // Will change its color into RED
}else{
$scope.colorChange // Will change its color into GREEN
}