i have existing web application where most of the time pages are submitted traditional way(like document.form.submit or ) I am planning to migrate to angularJS which i am learning. I am not sure how we can submit form in traditional way (without ajax) with angularJS ? I know it won't be true Single Page App(SPA), but for starting i would like to go this way.
Approach for migrating traditional app to SPA :- In future , i would like to go for SPA in which i will submitting the form thru ajax way using AngularJS. I have vague understanding how will i approach this but would like to get experts advice on this.
My Understanding:- Say i land to welcome page with a link for customer creation. I will make the ajax call from WelcomeController(angularJS Controller) to my servlet/spring controller which will return html response containing js file. HTML response will be conatining below
1)HTML will be containing ng-view and ng-template which will be used by routeProvide
2)One of the js files will be containing routeProvider Info to map the ng-template with view
Please correct me if this is right approach ?