What's the difference between building a page using ANGULARJS and building a page using the PHP template engine
Reply content:
What's the difference between building a page using ANGULARJS and building a page using the PHP template engine
Angular built pages can respond to events, bind data in two directions, and display user submissions without refreshing, better user experience
Angular tags can be customized to your needs, depending on your needs and imagination, PHP template labels are still limited to a limited number of HTML tags
PHP template rendering is a large number of client pull server, the pressure of rendering template is all concentrated on the server, CPU pressure increases linearly with the increase of concurrency, the pressure of the angular render template is dispersed to each client computer, the client concurrently increases the time to the server no pressure
PHP template rendering after the transmission is HTML multiple requests for the same HTML label back and forth, occupy the bandwidth, angular template only when the first load of the transfer, the subsequent request only data transmission, the use of less bandwidth, more suitable for mobile clients
PHP template generated HTML if not involved in complex JS, all browsers are compatible with Angualar template at least IE8 to use
PHP is the server-side generation DOM. Angularjs the front frame is the front-end generation Dom