Ng-model not working in android or ios but works just fine in ionic serve with no error

I am using ng-model to take is a string value and to output another to the a text area. Everything works fine in ionic serve in chrome with no error. When I build for ios or android there are no errors and both build successfully, but when I emulate it there is no output and the ng-model is not filling the text area. I can’t figure out what the issue is any suggestions?

model should be an object, maybe you used only a value

I am trying to run the following code. I allow the user to input a string SQL statement the use db.exec() to obtain the results. This works perfectly when I do ionic sever the result gets output to the screen. It does not work when emulated in either ios or android

<input type='text' ng-model="sql"></input>
<button ng-click="clickHandler(sql)"; class="button button-positive" id="execute">

<h3>SQL Results</h3>
            <div class="card">
            <div class="item item-text-wrap">

 $scope.clickHandler = function(model) {
        try {
  ;// Run the query without returning anything
            console.log('The test successfully read from file')
        } catch (err) {
            console.log("error at initial:  " + err);
        console.log('I have made it to this point');

        $scope.value = db.exec(model);