И передается оно так
goodBlockComponent.$inject = [];
function goodBlockComponent() {
return {
restrict: "E",
// replace: false,
scope: {
good: "=",
currency: "=?",
clickFunc: "=",
checkingGoodsMode: "="
},
// link: function (scope, element, attrs) {
// scope.$watch(attrs.value, function(newValue) {
// element.text(newValue);
// });
// }
templateUrl: require("../../views/templates/search/_goodBlockComponent.html"),
controller: 'goodItemComponentCtrl'
}
}
module.exports = goodBlockComponent;