fix angular file splice