Updating the ngcontrols directive to allow random access