Ng-model values between 2 ion-scrolls not updating


#1

Hi everyone.
I have a problem with using ng-model with 2 ion-scroll within the same controller.
My first code which was working:
Html:

<ion-content ng-controller="CalculatorCtrl"> 
     <div ng-repeat="item in items | filter: something ">
		{{ item.stage }}
	</div>
		<input type="radio" name="group" ng-model="something" value="value1">
		<input type="radio" name="group" ng-model="something" value="value2">
    </ion-content>  
  </ion-view>

However, if i include ion-scroll to separate it into 2 scroll views, filter is not working.
Html:

<ion-content ng-controller="CalculatorCtrl"> 
<ion-scroll>
	<div ng-repeat="item in items | filter: something ">
		{{ item.stage }}
	</div>
</ion-scroll>
<ion-scroll>
		<input type="radio" name="group3" ng-model="something" value="value1">
		<input type="radio" name="group3" ng-model="something" value="value2">
</ion-scroll>
    </ion-content>  
  </ion-view>

Please help…


#2

invalid tag-structure?


#3

Silly me. I have corrected the previous code. Anyway i have solved the problem by creating controller for each ion-scroll and use a service to share data between the controllers.