Skip to main content

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 your Application shortName.
  • The value of the attribute prefix should also be kebab-case.
project
├── conf
├── applications
├── angular
. ├── model
. └── space-app.xml
<angularApp name="space-app">
<version>1.0.0</version>
<prefix>nsx</prefix>
</angularApp>
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

Option
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>
Option
angular.oidcAuth.enable AngularApp

Enable an OIDC authorization setup, using Bearer tokens for the Authorization header.

<options>
<angular.oidcAuth.enable/>
</options>