asp.net core - Infinite loop when using disabled attribute binding to a function -


the pre rendering not working when bind "disabled" directive function contains console.log().

<button [disabled]="!isvalid()"></button> 

my function

 public isvalid(){      console.log("isvalid");      return true;  } 

from visual studio output console, got :

 microsoft.aspnetcore.nodeservices: information: isvalid  microsoft.aspnetcore.nodeservices: information: isvalid  microsoft.aspnetcore.nodeservices: information: isvalid  ..... (the same infinite loop message) ............ 

if remove console.log, pre-rendering works, suppose proccess keep on checking if button isvalid or not.

my package versions

"angular2-platform-node": "2.1.0-rc.1", "angular2-universal": "2.1.0-rc.1", "angular2-universal-patch": "0.2.1", "angular2-universal-polyfills": "2.1.0-rc.1", "aspnet-prerendering": "2.0.3",  microsoft.aspnetcore.spaservices : 1.1.0; microsoft.aspnetcore.nodeservices : 1.1.0; 


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -