facebook-workplaceoutlookemailmicrosoft-teamsdiscordmessengercustom-servicesmacoslinuxwindowsinboxwhatsappicloudtweetdeckhipchattelegramhangoutsslackgmailskype
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.1 KiB
30 lines
1.1 KiB
9 years ago
|
# ./controller
|
||
|
|
||
7 years ago
|
This folder contains the application's global controllers.
|
||
|
ViewControllers are located alongside their respective view class in `./view`.
|
||
|
These controllers are used for routing and other activities that span all views.
|
||
9 years ago
|
|
||
|
# ./model
|
||
|
|
||
|
This folder contains the application's (data) Model classes.
|
||
|
|
||
|
# ./view
|
||
|
|
||
7 years ago
|
This folder contains the views as well as ViewModels and ViewControllers depending on the application's architecture.
|
||
|
Pure MVC applications may not have ViewModels, for example.
|
||
|
For MVCVM applications or MVC applications that use ViewControllers, the following directory structure is recommended:
|
||
9 years ago
|
|
||
7 years ago
|
```text
|
||
|
./view/
|
||
|
foo/ # Some meaningful grouping of one or more views
|
||
|
Foo.js # The view class
|
||
|
FooController.js # The controller for Foo (a ViewController)
|
||
|
FooModel.js # The ViewModel for Foo
|
||
|
```
|
||
9 years ago
|
|
||
7 years ago
|
This structure helps keep these closely related classes together and easily identifiable in most tabbed IDE's or text editors.
|
||
9 years ago
|
|
||
|
# ./store
|
||
|
|
||
7 years ago
|
This folder contains any number of store instances or types that can then be reused in the application.
|