app.component.ts 560 B

12345678910111213141516171819202122
  1. import { Component } from '@angular/core';
  2. import { RouterOutlet } from '@angular/router';
  3. import Parse from "parse";
  4. @Component({
  5. selector: 'app-root',
  6. standalone: true,
  7. imports: [RouterOutlet],
  8. templateUrl: './app.component.html',
  9. styleUrl: './app.component.scss'
  10. })
  11. export class AppComponent {
  12. title = 'textbook';
  13. constructor(){
  14. this.initParseService();
  15. }
  16. initParseService(){
  17. Parse.initialize("edu-textbook");
  18. (Parse as any).serverURL = ("http://localhost:61337/parse");
  19. localStorage.setItem('company','RbIKpmuaMC')
  20. }
  21. }