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
Post a Comment