Pre angularjs save