http://plnkr.co/edit/LZUa1tm7EROk8zcw6sGh?p=preview
angular.module('myModule', [])
.controller('myDirective', function() {
console.log(angular.element('.myClass').prop('offsetWidth'));
});
I want to check where the DOM is visible or not in angularjs. But got an error of myClass is not a function?