maniaccoder·13 ปีที่แล้ว·discussI would suggest extracting the calculation functions to angular services.