2
AngularJS Directive element metodu bağlama - TypeError: 1'de 'functionName' aramak için 'in' operatörü kullanılamaz
Bu, ana şablonun denetleyicisidir: app.controller('OverviewCtrl', ['$scope', '$location', '$routeParams', 'websiteService', 'helperService', function($scope, $location, $routeParams, websiteService, helperService) { ... $scope.editWebsite = function(id) { $location.path('/websites/edit/' + id); }; }]); Yönerge şu şekildedir: app.directive('wdaWebsitesOverview', function() { return { restrict: 'E', scope: { heading: '=', websites: '=', editWebsite: '&' }, templateUrl: 'views/websites-overview.html' } }); Yönerge, …