Split a curve where the angles change

Going a bit futher here : How can i split a curve based on its curvature - #4 by LeGaulois

Split at a specific discontinuity