0
我做了AngularJS指令AngularJS 1.2,但它工作在更新我的应用程序AngularJS 1.3我的链接函数的第四个参数不包含控制器实例的数组了,但$ get.Constructor {}项目的数组后。
jtApp.directive("jtWizard", ["$q", "$timeout", function ($q, $timeout) {
return {
require: ["^ngController", "jtWizard"],
restrict: "E",
replace: false,
transclude: true,
templateUrl: "App/Components/wizard.htm",
scope: {
mainHeader: "@"
},
controller: "jtWizardController",
link: function postLink(scope, elm, attrs, controllers, transcludeFn) {
...
var userWizardController = controllers[0];
var jtWizardController = controllers[1];
...
}
);
有关于此的任何想法?