Question: I want to use multiple class in ng-class.These classes comes from my directive.

I need something like this;

```
ng-class="item.test1 item.test2"

```

**test1** and **test2** are my css classes.

When i call like this ,it does not work.

How can i call multiple class using ng-class?

Answer: 
Or you can simply use `class` for that purpose:

```
 <div class="{{item.test1}} {{item.test2}}"></div>

```
you can also do like this, it's a conditional:

```
<my-elem ng-class="{'class1':var==value1','class2':var=='value2'}">

```

but really, that's all in the official [document](https://docs.angularjs.org/api/ng/directive/ngClass) you could have search for it.