在一个组件中使用多个组件时响应缓慢的事件 - angular5

时间:2018-04-03 05:13:03

标签: angular typescript

这是Dashboard组件,它使用来自不同模块的多个组件 当我从导入的组件中触发任何事件时,需要时间来触发。

<div class="lffeedbox">
  <srv-create-post (postmessage)="saveLiveFeedPost($event)"></srv-create-post>
    <div>
      <srv-post-feed [LiveFeedInput]="LiveFeeds" [ShowHidden]='showhidden'></srv-post-feed>
    </div>

    <srv-loading [visible]="LiveFeedsloading"></srv-loading>
       <div class="well well-small clearfix group_content no_upcomming" *ngIf="LiveFeeds?.length==0 && !LiveFeedsloading" style="text-align:center;margin-top:30px;">
          {{'No_record_to_display'|translate}}
       </div>
</div>
</div>

<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
   <aside class="sidebaritems">
      <srv-feed-categories [activeIndex]='typeID' (SetPostFilterType)="setPostFilterType($event)"></srv-feed-categories>
      <srv-break-room></srv-break-room>
      <srv-people-near-you></srv-people-near-you>
      <srv-recent-articles></srv-recent-articles>
      <srv-latest-snaps></srv-latest-snaps>
      <srv-groups-may-like></srv-groups-may-like>
   </aside>
</div>`

enter image description here

0 个答案:

没有答案