Members
(inner, constant) rootRequireProvider :ProviderCreator.<RootRequireProviderOptions>
- Source:
- Tutorials:
The service provider that once registered on the app container will set the result of
rootRequire
as a service.
Type:
Methods
(inner) rootRequire(pathUtils) → {RootRequireFn}
- Source:
- Tutorials:
Generates a function to require a file relative to the project root directory.
Parameters:
Name | Type | Description |
---|---|---|
pathUtils |
PathUtils | To build the path to the files it will |
Returns:
- Type
- RootRequireFn
Type Definitions
RootRequireFn(path) → {Object}
- Source:
- Tutorials:
Exactly like require
, but th epath is relative to the project root directory.
Parameters:
Name | Type | Description |
---|---|---|
path |
string | The path to the file, relative to the project root directory. |
Returns:
- Type
- Object
RootRequireProviderOptions
- Source:
Properties:
Name | Type | Description |
---|---|---|
serviceName |
string | The name that will be used to register
the result of
|
services |
RootRequireServiceMap | A dictionary with the services that need to be injected on the function. |
Type:
RootRequireServiceMap
- Source:
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
pathUtils |
string | PathUtils |
<optional> |
The name of the service for
|