请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

5-4 公司详情页controller完善(2)加入--$scope.showPositionList(0);--会报错,怎么给 $scope.com赋值?

问题补充(选填):请详细描述

https://img1.sycdn.imooc.com/szimg//58a40fff00011c5010840418.jpg

https://img1.sycdn.imooc.com/szimg//58a40fc600017d3810850425.jpg

58a40e7500010a4805000174.jpg

58a40e750001179305000199.jpg



58a40e750001b54105000423.jpg

58a40e76000181d605000341.jpg

58a40e760001dac605000190.jpg

你的问题,贴出相关代码或截图,并告知你的操作步骤

正在回答 回答被采纳积分+3

1回答

提问者 女神☆经病 2017-02-15 19:42:42

 上述问题已解决

link:function($scope){

   

      $scope.showPositionList=function(idx){

    $scope.positionList = $scope.com.positionClass[idx].positionList;

    $scope.isActive = idx;

  }

  $scope.$watch('com',function(newVal){

  if(newVal) $scope.showPositionList(0);

  });

   }

};


1 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号