Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
<meta charset=utf-8 />
<title>ng-class</title>
</head>
<body ng-app>
  
  <div ng-controller="Ctrl" >
    
    <p ng-class="{'style1': isActive1, 'style2': isActive1}">Hello World</p>
     
</div>
</body>
</html>
 
function Ctrl($scope) { 
    $scope.isActive1 = true;
    $scope.isActive2 = true;
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
annaismepro
0viewers