ANGULARJS Series--Directory structure

Source: Internet
Author: User

Introduction

Recently busy an app project, saying, 工欲善其事 its prerequisite, so the first to learn angularjs this tool, is what we have to do!

Today I will first introduce you to the simple knowledge-the entire project directory structure, follow-up and share!

directory Structure

When we create a project, the directory structure is like this:


working Directory

Our working directory, mainly concentrated in the WWW folder, the www folder is this:



I believe that when you see CSS, Data, IMG, and index.html are familiar with, is our common CSS styles, figures and pictures. Index.html is our homepage. The Lib folder is a ionic library. There is not much explanation for these. Let's introduce our common templates and JS directories.


JS Directory


When we create a project, most of the time, the corresponding controller, instructions, routes, services are placed in separate files, and then injected into the app.js.

Templates Directory

The Templates directory is our page, which is used to store individual templates for easy management and reuse:


So finally the working directory structure of our project should be the following:

Summary

No matter what the matter, is to start to do the project or to learn a new thing, we must have a holistic view, not silly to learn, the first global control, and then in-depth study, so that we work every piece of the meaningful, and have a control, can not lose direction!

ANGULARJS Series--Directory structure

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.