given following example

```
    <div class="progress-animation" ng-show="file.state == STATES.DOWNLOADING">
        <div class="loader">Loading...</div>
    </div>

```

in javascript I've all these constants defined at a global level initialized before angular kicks in.

```
STATES = {
     DOWNLOADING: 1,
     UPDATING: 2,
     INSTALLING: 3
}

```

it works with `file.state == 1` but wondering how angular can evaluate it as an expression.