This fiddle implements a many-to-many relationship as a master-detail ng-repeat.
This angular fiddle shows you how to use a string to execute a function with the $parse directive.