I am using the dynamic content all my html page. when user refresh the page, i require to redirect to home page. but error thrown my html page, the page is not redirected at all.
my html:
<div class="btn-sec">
      <button type="submit" (click)="goToArtcilePage()" [disabled]="productedSelected" class="btn">{{appProps['book.label.buttons.next']}}</button>
    </div>
redirecting like in ts :
 constructor(private store: StorageService, 
      private sharedData: SharedDatasService, 
      private location:Location,
      private router:Router) {
      if ((!this.appData || !this.appProps ) && Object.keys(this.sharedData.validationDatas).length === 0) {
        this.router.navigate(['/']);
        return;
      }
    }
but still getting an error as :
ERROR TypeError: Cannot read property 'book.label.buttons.next' of undefined and the page is not redirecting at all.
any suggestion to fix this issue?
 
     
     
    