aurelia / framework

The Aurelia 1 framework entry point, bringing together all the required sub-modules of Aurelia.
MIT License
11.75k stars 623 forks source link

Aurelia view model showing error after adding hyperlink tag #893

Closed Srinivas-Ramu closed 6 years ago

Srinivas-Ramu commented 6 years ago

I am using Aurelia Dialog Service for model pop up, when i use hyperlink tag inside view model (model popup), it is showing error as Message: Maximum call stack size exceeded

Here is the code:-

HomePage.html

import { autoinject, observable,PLATFORM } from 'aurelia-framework'; import { DialogController, DialogService } from 'aurelia-dialog'; import { PreviewWorkbook } from './../../components/preview-workbook/preview- workbook'; @autoinject constructor(private _lg: AppLogger, private _dlgs: DialogService, ) { } public PreviewMenu(e: Event): void { this._dlgs.open({ viewModel: PreviewWorkbook, model: Workbooks }).whenClosed(rsp => { this._lg.log("Preview Menu Cancelled"); }); }

when i click on PreviewMenu() in homepage.html i am getting below error capture1 PreviewWorkbook HTML page:-

`` If i just use just ul,li to bind the values it is working fine.

StrahilKazlachev commented 6 years ago

Since you are not following the issue template I'll take a guess you are experiencing aurelia/dialog#283 - workaround is in the issue. Or if you are not using TS and you've updated to aurelia-dependency-injection@1.4.0 it can be an issue from the new version, try to downgrade to 1.3.2.

AshleyGrant commented 6 years ago

As stated in the Issue Template, support questions are to be posted to Stack Overflow or to the Gitter channel.

The issue template states that if you do not follow the template your issue will be summarily closed and also that support questions posted as GitHub Issues are summarily closed.

If you would like help, please post your question on Stack Overflow.

@eisenbergeffect, please close this.

Srinivas-Ramu commented 6 years ago

Hi, I have posted in Stack Overflow also, but still there is no response, Here is the link https://stackoverflow.com/questions/50872723/aurelia-view-model-showing-error-after-adding-hyperlink-tag

Srinivas-Ramu commented 6 years ago

Hi @AshleyGrant ,I am using Ts and in pakage.json I can see aurelia-pal": "^1.4.0","aurelia-router": "^1.4.0" you want me do downgrade from 1.4.0 to 1.3.2 ?

StrahilKazlachev commented 6 years ago

@srinivasrgowda if you've been having this issue before today, focus on aurelia/dialog#283.

Srinivas-Ramu commented 6 years ago

@StrahilKazlachev Thanks for the link. I tried to modify the code by adding the below line in the constructor: constructor(private controller: DialogController) {PLATFORM.moduleName('./request-dialog-path'); } and it is working fine. :)