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: 
You can use array notation for multiple classes:

```
<my-element ng-class="[item.test1, item.test2]">Classes applied</my-element>

```

[JSFIDDLE](http://jsfiddle.net/zgaj17hL/1/)
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.