I am working on a sports list in a mobile app with Ionic, there is a view 
where the user choose(check) which sports would like to see on the list

    <input type="checkbox"
          ng-model="sport.checked"
          ng-init="sport.checked=true">

and then once he chooses the sports, he goes to the other view

    <div ng-repeat="sport in sports">
       <div ng-show="sport.checked">

          {{sport.name}}

        </div>
   </div>


but if the user refresh the page or go to any other view and tries to get 
back to the sports view, he loses the selections of sports he just did, so 
he needs to perform the action of selecting again which sports he wants to 
see.

[I recorded this video for you to understand 
easier](https://www.youtube.com/watch?v=KFzhTHiNCps&feature=youtu.be)

on the video you will see that I go to the view and unchecked the first two 
sports on the list, they disappear but once I refresh the page, those 2 
sports will be on the list again.

Maybe the issue is the ```ng-init``` so I want you to tell me guys what I 
need to do to keep the record of which sports he selects ? 

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to