Close

The server-side API Controller

Back to Content The angular.js file contains client side code. If you look at the Save() function you can see how you can call server-side code by using AJAX: $http({ method: ‘POST’, url: ‘api/Planning/PostPlanning/’, data: $scope.Planning }) We have defined an API controller named Planning with a method PostPlanning to which we pas the model…

Angular.js Scripting

Back to Content The next piece is the Angular.js script file – Planning.js – which is contained in the Scripts folder. Note that the file starts with a module declaration and then a controller declaration. The controller code starts with statements that show/hide the elements the elements that need to be displayed. I tried to…

MVC websites for non-web developers

Web development is not my core competence. Recently I had to build an ASP.Net website though and deploy it to Azure. I decided to use MVC and managed to get things up and running. In the following series of posts, I will explain the way to go: 1. Defining layout.cshtml. 2. The client-side MVC controller.…