angular general logic implementation

bug: double array repeater in angular ng repeat