SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the ternary operator notation:
<div id="homePage" ng-class="page.isSelected(1)? 'center' : 'left'">