WebApp Development-angular1+ Function Module Division

Source: Internet
Author: User

ls|

Controller naming
App.js defined by the controller, the controller that is declared separately in the sub-page

    • App_democtr
    • Page_democtr

Service naming
. Factory (' Common ', function ($state, $ionicHistory, $ionicScrollDelegate) {return{init:function ($scope) {},}})


Public function Use (ANGULAR1): Refresh (load), return, jump, drop down
Service class

    • Send SMS Verification Code service
    • Invoking the interface service
    • File Read service
    • Image Caching Service



Service + $ionicModal +controller+jqdom = Popup plug-in plugin

    • Keyboard services
    • Photo
    • Progress bar


form of presentation: Pop-up window
$ionicModal


Command naming
. directive (' base ', function ($parse) {})
Filemodel instructions (file preview)

Instruction +modal+ Controller

Amarpicker directive (selector)

HTML: Mainly by function division

    • Templates naming-by Function module Division
    • templates/demo/

Service + $ionicModal +controller+jqdom = Popup plug-in plugin

    • Templates/widget/rpay_keyboard_popup.html
    • Templates/widget/keyboard_popup.html
    • Templates/widget/num_keyboard_popup.html
    • Templates/widget/loader_popup.html

Instruction +modal+ Controller

Templates/widget/picker_popup.html

WebApp Development-angular1+ Function Module Division

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.