2

如果页面是“production.contact.create”,此代码允许我执行 $ 转换

  .run(($transitions, Toast) => {
    'ngInject'
    $transitions.onSuccess({
      from: 'production.contact.create'
    }

我想在两个页面中运行此代码,“production.contact.create”和“production.contact.detail”,类似这样的东西:

  .run(($transitions, Toast) => {
    'ngInject'
    $transitions.onSuccess({
      from: 'production.contact.create',
      from: 'production.contact.detail'
    }

有解决办法吗?以模板文字为例

4

0 回答 0