If I understood correctly what you want:
- You do not have a
ng-app definition. - In jsFiddle for AngularJS fragments, load the
No wrap - in <head> boot mode if you use AngularJS as an external resource. - The
selected model has its own range because you are using ng-repeat . To understand what I mean, here is a fixed version of your code: http://jsfiddle.net/gBcN2/2/
The first {{selected}} works fine, but the second is "outside" the ng-repeat .
PS:
You do not need to use ng-repeat if you want to use it, as you wrote in your example: a quick script of how I will do it.
Edit:
For flags, this is something like this - http://jsfiddle.net/qQg8u/2/
source share