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?
update: can height using adding [0] after classcollected
, code classcollected[0].offsetheight
height getting not actual height of div. lesser.
Comments
Post a Comment