Your problem is more of an html+css problem than an angular problem.
You are generating radio inputs and labels using {{value}} as the id. You should not have duplicate element ids in a page, especially when using html <label for='id'>. You need to make sure you generate unique ids for things. I’ve modified your example to us the value of the ng-module attribute along with the value to generate an id: <http://jsfiddle.net/NZ8EX/5/>http://jsfiddle.net/NZ8EX/5/ On Sunday, December 22, 2013 9:25:11 AM UTC-8, Alan Löffler wrote: Hi, I'm trying to make a custom radio button with a directive. > The problem is that when I use in the same scope more than one group of > radios (like two groups with two different models), the second group > updates the model of the first group. > I know that there's something wrong in my directive, I need to say to the > directive to use an own scope, but don't know how. > > My sample is here: http://jsfiddle.net/Onza/NZ8EX/ > > I really appreciate some help! > Thanks. > -- 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 angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.