ng-class is working for changing styling for p1 and p2