maniaccoder·vor 13 Jahren·discussI would suggest extracting the calculation functions to angular services.