unable to access rootscope var in directive scope

后端 未结 2 1608
长情又很酷
长情又很酷 2021-01-04 07:55

The function below defines a variable in the rootscope.

function MyCtrl($scope, $rootScope) {
  $rootScope.buttons = [{href: \'#/students\', icon:\'icon-ok\         


        
2条回答
提交回复
热议问题