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];
...
}
);
有關於此的任何想法?