What's the difference between building a page using ANGULARJS and building a page using the PHP template engine

Source: Internet
Author: User
Keywords Php angularjs
Tags php template
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

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.