import { Component } from '@angular/core';
import { Router } from '@angular/router';
import { FormioResources } from '@formio/angular/resource';
import { FormioAuthService } from '@formio/angular/auth';
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
export class AppComponent {
public auth: FormioAuthService,
public resources: FormioResources
this.auth.onLogin.subscribe(() => {
this.router.navigate(['/']);
this.auth.onLogout.subscribe(() => {
this.router.navigate(['/auth/login']);
this.auth.onRegister.subscribe(() => {
this.router.navigate(['/']);