Ionic project using SQLite plugin and accessing mongoDB misbehaves after build

I created a Ionic project which fetches data from SQLite database
locally and MongoDB remotely. I have a list which is bound with the data
fetched from the database.

The issue is, When I run the project without building, it works fine,
but as soon as I build it from the terminal the list just shows
{{item.name}} instead of the value in it. Input field ‘change’ event is
also not getting fired.

Below is the HTML code:

<label class="item-input uTxtFields">
     <input type="search" ng-model="txtField1" ng-change="function()">               
</label>            

<ion-scroll  direction="y" ng-show="txtField1.length > 1" >
    <ul class="list">
       <li class="item" ng-repeat="item in items" ng-click="setDesigner(item)">
                   {{item.name}} 
       </li>
    </ul>
</ion-scroll>

There is no error or warning message.
Any help would be appreciated. Thanks in advance.