ApplicationSwitch
Angular Registration
This requires the .Net implementation of App Switch. If the application is offline it will return 503 Status Codes. The angular module will listen for these 503 status codes and reload the application to display the offline message. It also adds a route listener that will check the applications status on each angular route navigation.
npm install @uiowa/fbis-application-switch
In app.module.ts add the following module to the imports
FbisApplicationSwitchModule
In app.component.ts inject FbisApplicationSwitchService
private readonly appSwitchService: FbisApplicationSwitchService
Then in the ngOnInit
method add the following line
this.appSwitchService.registerAppSwitch();