AngularApp
In order to define an angularProjects model you need a description of the AngularApp
.
There can only be one AngularApp
per project. Under your project there needs to be a angular directory, this directory contains everything related to your AngularApp
. Under the model directory you can add the AngularApp
XML file.
Naming
- The name of your
AngularApp
needs to be kebab-case. It also needs to be the kebab-case version of yourApplication
shortName. - The value of the attribute
prefix
should also be kebab-case.
project
├── conf
├── applications
├── angular
. ├── model
. └── space-app.xml
- space-app.xml
- expansionSettings.xml
<angularApp name="space-app">
<version>1.0.0</version>
<prefix>nsx</prefix>
</angularApp>
Add an expansion to the expansionSettings.xml
<expansions>
<expansion>
<type component="angularProjects" name="AngularApp"/>
<target>space-app::1.0.0</target> <!-- AngularApp name + version -->
</expansion>
</expansions>
note
prefix
attribute is used to set a prefix in the angular.json
and will be used by the Angular CLI to prepend created selectors.
Applicable options
angular.basicAuth.enable
AngularApp
Enable a basic authorization setup. Uses Basic
tokens for the Authorization header. Value is the endpoint that can be used for authentication, e.g. /spaceApp/v1/starships
<options>
<angular.basicAuth.enable>/spaceApp/v1/starships</angular.basicAuth.enable>
</options>