TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ahmed elbarbary
NA
1.6k
278.5k
Error TS2339: property ‘rows’ does not exist on type ‘htmlel
Feb 9 2020 8:07 AM
I work on angular 7
when loop to table html and compile i get error
95% emitting CopyPlugin
ERROR in src/app/Pages/part-compare/part-compare.component.ts(25,38): error TS2339: Property 'rows' does not exist on type 'HTMLElement'.
src/app/Pages/part-compare/part-compare.component.ts(27,26): error TS2339:
Property 'rows' does not exist on type 'HTMLElement'.
How to solve this error please ?
What I have tried:
var
table
=
document
.getElementById("CompareParts");
for (var
i
=
1
, row;
row
=
table
.rows[i]; i++) {
for (var
j
=
0
, col;
col
=
row
.cells[j]; j++) {
var
Cell
=
table
.rows[i].cells
this.ACells.push(Cell);
}
}
this
this.length
=this.ACells.length
for (var
x
=
0
; x
<
this.ACells.length
; x++) {
this.ARows.push(this.ACells[x]);
Reply
Answers (
2
)
using jquery on angular 7 not working and not make red to di
How to access object and values on json and display as table