javascript - Do angular.element returns the actual html code? -


i have made service in angular in service requires accessing dom properties of different elements, sample call of service.

panelsservice.collectclass(angular.element('.contact-panel-for-same-height')); 

i did console log @ service code, console.log('i want offsetheight of element', classcollected); , tried accessing classcollected.offsetheight returns undefined. found out classcollected group of html codes, , if foreach classcollected see actual html code, expecting object offset height. how access these properties html code returned?

image reference

update: can height using adding [0] after classcollected, code classcollected[0].offsetheight height getting not actual height of div. lesser.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -