阅读背景:

在单元测试中获取控制器的编译模板

来源:互联网 

I have the following controller:

我有以下控制器:

angular.module('app').controller('userList'
 , ['$scope','appRules',function ($scope,appRules) {
  $scope.isUserInRole=function(user,role){
    console.log("exucuting userIsInRole:",user,role);//never happens
    return  appRules.userIsInRole(user,role);
  }
  window.sscope=$scope;
  console.log($scope.menu);
}]); 
a



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: