javascript - Angular 2 App scrolls to top on its own -


since app big try simplify below:

tagcomponent :

@component({   selector: "tag",   template: `<div *ngfor="let of arr">{{a}}</div>` }) export class tagcomponent{   @input() arr: string[];    add(){     this.arr.push("abc");   } } 

appcomponent :

@component({   template: `<p><tag [arr]="data"></tag></p>` }) export class appcomponent{   data: string[];    //some other code } 

so, when add() called, first time app scrolls top automatically , occurs in outlook desktop running modified version of ie 11. bit difficult understand problem , give solution hints might cause count answer.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -