Mastering AngularJS for .NET Developers by 2015

Mastering AngularJS for .NET Developers by 2015

Author:2015
Language: eng
Format: mobi, epub
Publisher: Packt Publishing


There are two different types of renderings: server side and client side. In server-side rendering, the client (browser) fetches web pages from a server over HTTP. In client-side rendering, JavaScript running on the client (browser) produces or manipulates the DOM. All browsers understand JavaScript and because of this, client-side rendering can be accomplished using JavaScript without sending a request to the server and waiting for its response. The advantage of client-side rendering is that the user can update a web page instantly. When the user clicks on any button, the click event updates the information on the page rather than waiting for a few hundred milliseconds to get a response from the server in order to display the page on the client side.

Best practice to render web applications is to render the initial state of the web page on the server and interactive widgets and then to re-render the part of the web page that needs to be updated on the client side. It is typical to render the meat of the page on the server side and then to enhance the page on the client side with a client library using jQuery or the AngularJS framework.

Server-side programming and client-side programming cannot be combined together because typically, server-side and client-side programming are performed in different programming languages. Server-side programming is the program that generally runs on the server and interacts with the resource management tools, such as SQL, Oracle databases, and so on. For server-side programming, we can use any server-side programming language, such as C#, Visual Basic .Net, C++, Java, and so on.

Client-side programming can be achieved using a client programming library or framework, such as jQuery, AngularJS Backbone, and so on. All client-side libraries and frameworks are based on JavaScript. The client-side program runs on the client. The following figure shows the communication between different clients and the server:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.