$compile + ngRepeat + replace templates (fix #2151)