ngClass not working?

If you use '-' in the class name you should cover the class name using single quotes.

[ngClass] = "{'some-class': condition}"

otherwise can be use

[ngClass] = "{someClass : condition}"

It is clearly a parser error, you have invalid syntax due to the presence of - in the property name @ {has-success: form.email.$valid}. You would need to wrap them in quotes.

Try:-

<div class="form-group" ng-class="{'has-success': form.email.$valid}">

Theres a dash in your class name, so use single quotes!

ng-class="{'has-success': form.email.$valid}"