Summary of--angularjs+mvc+routing Development steps of framework development--5.14

Source: Internet
Author: User

1, the continuation of the concept of MVC: including the programming of the route map, controller content, specific view page JS separation.

2, combined with ANGULARJS to do the front end, the back end uses the syntax of node. js to introduce the MVC framework for rapid development.

The steps are summarized as follows:

1, view page modification, folder name, file name, name of the case specification, in the base folder in the Main.ejs file remember to register.

Note the use of angular.js for front-end page writing, and the corresponding page code writing, related angular. The collection of JS usage.

2, the view corresponding JS file writing, folder name, file name, name of the case specification and the specific JS writing, in the static\js\modules set up the corresponding JS file,

Note that you can configure the menu in Navigation.js if you need to configure the menu at the same time.

Note $ajax. Post, the specific writing of $ajax. Get needs to be enhanced.

3, in the controller to write the corresponding controller code, note folder naming, file name, and name +controller.

In the file, you need to write a specific route map of the registration, and the corresponding action point or code, and the rules of the filter also need to join.

4, the corresponding need to carry out the contents of the overall package can be presented as early as possible.

5, need to be in Basecontroller base controller, add specific page of modules page registration.

6.

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.