Guest User

Untitled

a guest
Oct 22nd, 2019
85
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { AnonymousSuggestionComponent } from './anonymous-suggestion/anonymous-suggestion.component';
  2. import { ClearBrowserCacheComponent } from './clear-browser-cache/clear-browser-cache.component';
  3. import { CreateAccountComponent } from './create-account/create-account.component'
  4. import { LoginComponent } from './login/login.component';
  5. import { ResetpasswordComponent } from './resetpassword/resetpassword.component';
  6. import { Injectable, EventEmitter } from '@angular/core';
  7.  
  8. // We need to be able to give App.module.ts access to
  9. export const allRoutes = [
  10. { name: 'Login', component: LoginComponent, icon: 'computer', path: ''},
  11. { name: 'Create Account', component: CreateAccountComponent, icon: 'create', path: 'createaccount'},
  12. { name: 'Reset Password', component: ResetpasswordComponent, icon: 'securityicon', path: 'resetpassword'},
  13. { name: 'Anonymous Suggestion', component: AnonymousSuggestionComponent, icon: 'help', path: 'anonymoussuggestion' },
  14. { name: 'Clear Browser Cache', component: ClearBrowserCacheComponent, icon: 'report_problem', path: 'clearbrowsercache'},
  15. ];
  16.  
  17. @Injectable()
  18. export class DataService {
  19. readonly minUsernameLength: number = 8;
  20. readonly minPasswordLength: number = 8;
  21. readonly badChars: any = ['#','%','^','\'','&'];
  22. readonly showDialogEmitter = new EventEmitter<{message: string,switchToLoginTab: boolean}>();
  23.  
  24. showDialog(message: string,switchToLoginTab: boolean) {
  25. this.showDialogEmitter.emit({message,switchToLoginTab});
  26. }
  27. }
RAW Paste Data