Angular: CSS styling
http://angularjs.org/
by Riccal
HTML
<div ng-controller="MyCtrl" ng-style="{color: myColor}">
<input type="text" ng-model="myColor" placeholder="enter a color name">
<div ng-repeat="item in items" ng-class="{'pending-delete': item.checked}">
name: {{item.name}}, {{item.title}}
<input type="checkbox" ng-model="item.checked"> <spen ng-show="item.checked">(will be deleted)</span>
</div>
<p>
<div ng-hide="myColor== 'red'">I will hide if the color is set to 'red'.</div>
</div>
CSS
.pending-delete { background-color: pink }
JavaScript
var myApp = angular.module('myApp', []);
function MyCtrl($scope) {
$scope.items = [
{
name: 'Misko',
title: 'Angular creator'},
{
name: 'Igor',
title: 'Meetup master'},
{
name: 'Vojta',
title: 'All-around superhero'}
];
}