Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
468 views
in Technique[技术] by (71.8m points)

angular - core.js:4127 ERROR TypeError: Cannot read property 'title' of undefined

component.ts
  public deteleApp(e: any) {
    console.log('Eliminar app', e);
    swal({
      title: this.message_swal['deleteTicket'].title,
      text: this.message_swal['deleteTicket'].deleteApp,
      type: 'warning',
      showCancelButton: true,
      confirmButtonColor: '#3085d6',
      cancelButtonColor: '#d33',
      confirmButtonText: this.message_swal['deleteTicket'].confirmDelete,
      cancelButtonText: 'No'
    }).then((result) => {
      if (result.value) {
        this.appsService.delApplication(e.id).subscribe((response) => {
          this.spinner.show();
          console.log('response del app', response);
          this.getAppUser();
        }, (error) => {
          console.log(error);
        });
      }
    });

html code <st-collection-apps (delete)="deteleApp($event);" (despublicar)="despublicarApp($event);" [data]="row" [routerApp]="routerApp">

hi,i have a piece of code so when i try to login and delete its working fine but when i refresh the page the page and try to delete its not working its giving me above error, for not only this i have button first time when i try navigate page its working fine(https://localhost:4200/Planes-y-Precios-de-Aplicaciones-en-Facebook) but letter if refresh and try its giving me an error like this (Cannot match any routes. URL Segment: 'undefined')https://localhost:4200/undefined

question from:https://stackoverflow.com/questions/65949264/core-js4127-error-typeerror-cannot-read-property-title-of-undefined

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...