Data docking of front-end and backstage via Angularjs (I.)

Source: Internet
Author: User

Recently, the author is doing a project: using AngularJS, so as to achieve the front-end and background data docking. This is the first time to do the front-end and background data docking work, so encountered a lot of problems. In these questions, the author summarizes how to achieve the front-end and the background of the data docking method, I hope to share with you.

before starting the front and back-end data docking, the first thing to do is to do the following:

    1, first to understand where the page needs to provide data (that is, where to connect the interface)

PS: Obviously, the data in the table is to send the request to the background and get the data that the page needs to display from the database.

    2. To understand the meaning of each field in an interface

    

PS: In general, front-end workers can be based on their English translation, know the meaning of each field

    3. To understand the meaning of each field in a database, the relationship between a database table and a field in a database table

This is a table of every database:

    

Here is the user table:

PS: You can see from the user table, some fields of data is replaced with simple numbers, however, in fact, these "number" field has its corresponding data list, these numbers in its corresponding list has its corresponding meaning.

      Cases:

Field Grade

        

    4, to know clearly is directly from the background to obtain data (no need to pass the parameters), or to send data to the background to obtain the data behind the station (to pass the parameter)

Cases:

        This is a need to pass the argument:

      

        This does not require a reference:

      

Data docking of front-end and backstage via Angularjs (I.)

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.