@uiowa/fbis-application-switch
TypeScript icon, indicating that this package has built-in type declarations

8.0.0 • Public • Published

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();

/@uiowa/fbis-application-switch/

    Package Sidebar

    Install

    npm i @uiowa/fbis-application-switch

    Weekly Downloads

    7

    Version

    8.0.0

    License

    none

    Unpacked Size

    90.8 kB

    Total Files

    29

    Last publish

    Collaborators

    • a_clemence
    • changhuixu
    • codydroz
    • fbis-uiowa
    • gvamsilatha
    • jacobbp25
    • markahrens
    • vipetrul