0
You can use a set method for this purpose. This way you run a logic before passing the value to your class variable. For example:
@Input()
set disciplinasTurma(disciplinas: string[]): void {
this.disciplinasTurma = disciplinas.splice(disciplinas.findIndex(d => d === valor), 1);
}
Mutation in general is bad, the right would be to copy to another property
– Eduardo Vargas