With angular, is the view layer in the traditional back-end MVC still needed?

Source: Internet
Author: User
Keywords View angularjs laravel mvc
Recently in See ANGULARJS, sigh it's bad. At the same time raised doubts. The traditional back-end MVC does not require the view layer.

For example, Laravel used up. You only need to pass data to the page. I'm not writing a template anymore.
Or is the view in the back end needed?

Reply content:

The discussion of this kind of problem should be from the scene, from the actual situation.
The answer is still necessary.
  1. Not all needs and scenarios can be used AngularJS to solve, AngularJS has its own advantages, but the shortcomings are also obvious, cumbersome and not fine, insufficient support for SEO and so on;
  2. Team composition, no one will use AngularJS, or a large number of non-front-end developers, supporting a variety of operations and maintenance facilities, and even the entire company's technical architecture is bound by the Java system (from the developer, architecture, operations are bound), what should I do? In other words, AngularJS has a bit of advantage in this respect and is friendly to such developers;
If in some scenarios, it is true that the backend only needs to do the API, other View-related things can be handed to AngularJS for processing. But it's not everything! This need to see the precise definition of what you call a view! In the Spa class system, although there is not a large number of pages, but for the backend, the real part of the view of the code is there, but the output mode and scope is different: the original shared to the page of the variable to the JSON service, the original server-side rendering to the client (AJAX) request and then render.
But in the backend design architecture, the MVC pattern of V exists, not because the front-end introduction of ANGULARJS and there is a substantial change! Now is a set of backend, a few to adapt to display the UI, so wear data is sure to be the best angularjs basically can help you complete all the pages into the face of things, in a sense, can be said to replace the partial view function. Generally is the backstage good API front desk calls directly with Angularjs.
  • 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.