Accessing ng-model from ion-view


#1

Hey guys,

I am trying to access (save button) ng-modal variable observation from my footer and it doesn’t work if footer is outside ion-content.

<ion-content>

        <div class="list">
            <label class="item item-input item-select">
                <div class="input-label">
                    Value
                </div>
                <select ng-model="observation">
                    <option>1</option>
                    <option selected>2</option>
                    <option>3</option>
                    <option>4</option>
                    <option>5</option>
                    <option>6</option>
                </select>
            </label>
</ion-content>

<!-- Footer -->
<div class="bar bar-footer bar-dark">
    <button id="footer-left" href="#/makeObservation" class="button button-clear pull-left">Cancel</button>
    <!-- <div class="title">Title</div> -->
    <!--href="#/makeObservation"-->
    <button id="footer-right" class="button button-clear pull-right" ng-click="createObservation(observation)">Save</button>
</div>

Any thoughts how I can do that?