show dbs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const navigationMachine = Machine( | |
| { | |
| id: 'navigationMachine', | |
| initial: 'initial', | |
| context: { | |
| addressValid: true, | |
| fulfilmentValid: false, | |
| slotsValid: false, | |
| overviewValid: false, | |
| thankyouValid: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const canActivateNextComponent = (ctx, event, { state }) => true; // check if next component can be activated | |
| const canActivatePreviousComponent = (ctx, event, { state }) => true; // check if previous component can be activated | |
| const navigationMachine = Machine( | |
| { | |
| id: 'navigationMachine', | |
| initial: 'overview', | |
| context: { | |
| addressValid: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {HttpClient} from '@angular/common/http'; | |
| import {Injectable} from '@angular/core'; | |
| import {Observable} from 'rxjs/index'; | |
| export interface someObject { | |
| } | |
| @Injectable({ | |
| providedIn: 'root' | |
| }) |