See the Pen Unsubscribing to NgTableParams events by christianacca (@christianacca) on CodePen.