I'm building a set of reusable components in AngularJS 1.5.x version. Each directive accepts a model like below.
<app-grid ng-model="scope.gridModel" />
The gridModel is a simple class looks like below,
function GridModel(cols) {
this.cols = cols;
}
Is there any way I can check in the directive that the passed model is of type GridModel ?