If I got right what you want:
- You don't have
ng-app
definition. - On jsFiddle for snippets of AngularJS put
No wrap - in <head>
load mode, if you are using AngularJS as external resource. - Model
selected
has it's own "range", because you useng-repeat
. To see what I mean, here is fixed version of your code: http://jsfiddle.net/gBcN2/2/
First {{selected}}
works fine, but second is "outside" of ng-repeat
scope.
PS:
You don't have to use ng-repeat
if you want to use it like you wrote in your example: quick fiddle of how I'd do it.
Edit:
For checkboxes it's something like that - http://jsfiddle.net/qQg8u/2/