Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public canExitStep2: (MovingDirection) => boolean = (direction) => {
switch (direction) {
case MovingDirection.Forwards:
return this.canExitStep2Forwards;
case MovingDirection.Backwards:
return this.canExitStep2Backwards;
case MovingDirection.Stay:
return true;
}
};
public canEnterStep2: (MovingDirection) => boolean = (direction) => {
switch (direction) {
case MovingDirection.Forwards:
return this.canEnterStep2Forwards;
case MovingDirection.Backwards:
return this.canEnterStep2Backwards;
case MovingDirection.Stay:
return true;
}
};
public canEnterStep2: (MovingDirection) => boolean = (direction) => {
switch (direction) {
case MovingDirection.Forwards:
return this.canEnterStep2Forwards;
case MovingDirection.Backwards:
return this.canEnterStep2Backwards;
case MovingDirection.Stay:
return true;
}
};
public canExitStep2: (MovingDirection) => boolean = (direction) => {
switch (direction) {
case MovingDirection.Forwards:
return this.canExitStep2Forwards;
case MovingDirection.Backwards:
return this.canExitStep2Backwards;
case MovingDirection.Stay:
return true;
}
};
public canExitStep2: (MovingDirection) => boolean = (direction) => {
switch (direction) {
case MovingDirection.Forwards:
return this.canExitStep2Forwards;
case MovingDirection.Backwards:
return this.canExitStep2Backwards;
case MovingDirection.Stay:
return true;
}
};
public canEnterStep2: (MovingDirection) => boolean = (direction) => {
switch (direction) {
case MovingDirection.Forwards:
return this.canEnterStep2Forwards;
case MovingDirection.Backwards:
return this.canEnterStep2Backwards;
case MovingDirection.Stay:
return true;
}
};
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {ArchwizardModule} from 'angular-archwizard';
import {CustomNavigationModeComponent} from './custom-navigation-mode.component';
@NgModule({
imports: [
CommonModule,
ArchwizardModule.forRoot()
],
declarations: [CustomNavigationModeComponent],
exports: [CustomNavigationModeComponent]
})
export class CustomNavigationModeModule { }