ui-router 父子state共享数据

  如果ui-view是嵌套的,那么在子view中,可以直接引用 

   $scope.$parent 即可。

原文地址:https://www.cnblogs.com/ifykwf/p/6011819.html