I'm super new to Angular and JS in general. Basically I have an array thats stored in a var inside a factory and I want that entire array (this.insights) to get imported(?) into my directive.
I believe I need to do something like scope.insights = [];
var Piece = function (parameters) {
this.thing = null;
this.that = null;
this.insights = [
{
id: 1,
}
{
id: 2,
}
];
}