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