Been finding how to clear form data with the use of angular and $setPristine Function but still no results always gives me an error saying $setPristine is not a function. Ca
use:
$scope.$destroy
as it removes all the children associated to the parent scope and will clear all the data associated with it.