Angular integration and ajax call on submit form