search

Home  >  Q&A  >  body text

javascript - angular-animation怎么使数据加载后再进行动画?

使用ngAnimation的ng-enter时,总是先进行动画,路由的数据要等动画执行完后才进来,不知怎么弄?

为情所困为情所困2743 days ago560

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-05-15 17:16:06

    You can add an ng-if to load the DOM when there is data. This should ensure that there is data when the animation is executed

    reply
    0
  • Cancelreply