1.报错:
Error: [ng:areq] http://errors.angularjs.org/1.5.9/ng/areq?p0=authorizationUserDetailController&p1=not%20aNaNunction%2C%20got%20undefined
原因:
import { detailControllerBase } from "../../shared/common/detailControllerBase";
export class authorizationUserDetailController extends detailControllerBase {
static $inject = ["$scope", "$translate", "$filter", "$stateParams", "$state", "toaster"];
constructor($scope, $translate, $filter, $stateParams, $state, toaster) {
super($scope, $translate, $filter, $stateParams, $state, toaster);
}
// 原因:下面两行如果放到export语句上方会出现该错误
var app = angular.module("app");
app.controller("authorizationUserDetailController", authorizationUserDetailController);