My directive is the following
angular
.module('app.directives')
.directive('myTable',function(){
function linkFn(
scope,
element,
attrs
) {
console.log(attrs.attributes);
}
return {
link: linkFn,
template: 'some.html',
scope: {
attributes: '=',
},
replace : true
}
});
And I use the directive as
<my-table attributes="management.table.attributes"></my-table>
However the attrs.attribute value in the link function resolves to the string management.table.attributes, instead of being an array.
I will appreciate any kind of help or guidance.
Thanks!