NOTE:.
File and folder
main.js
This file first defines the libraries needed by the application. We will see later on how we start the application using require entry point function.
So for the moment the content is pretty simple:
feature folder
For the purpose of the explanation let’s call this feature folder
area.
Before we review how we can start the application, let’s first see how a feature is organized.
For each feature we will define a folder containing the following:
area/namespace.js:
area/services/_index.js
area/services/myService.js
Note that we are again referencing the namespace in order to prefix the name of the service with it.
If you do not want your service to be in a specific namespace you can just ignore that and write:
area/module.require.js