Angular cli Iframe一次又一次加载

时间:2018-10-04 14:25:12

标签: angularjs angular-cli

正在工作Angular cli正在尝试加载iframe。如果我使用间隔代码iframe一次又一次加载..如何解决? 这是我的代码

.ts file
this.url = "https://XXXXX.com;sess_cookie=1;token=1;domain=XXX;email=dinesh;
   let timePollers = Observable.interval(5000).take(30).map(x => x + 1);
   this.pollingSubscription = timePollers.subscribe(counter => {
    console.log("count",counter)
   });
.html file 
 <iframe  style="height:100vh" width="100%" [src]="sanitizer.bypassSecurityTrustResourceUrl(url)" height="100%"  id="saavha_auth" #saavhaauth frameborder="0"></iframe>

0 个答案:

没有答案