It should be `ng-class = "{'inactive': !project.data.active}"` You shouldn't use bindings inside class attribute; you must use ng-class attribute for dynamic things.

Check the angular docs for ng-class examples/explanation