- I'm still getting the hang of tslint and typescript.
- The error I'm encountering has me stumped.
- Can someone guide me on resolving it?
- I've searched extensively but haven't been able to find a solution.
- Sharing my code snippet below.
(no-inner-html) app/components/sports.ts[717, 9]: It's considered unsafe to use the html() function to write a string to innerHTML: $('.tubing').html(health.title)
if (health.title == "waterS") {
let that = this;
let recordPlayersWeight = {};
this.futureParrot = [];
this.pastParrot = [];
this.peacockService.getResponse(health.url, 'get', null)
.subscribe(recordPlayersWeight => {
this.gridData = recordPlayersWeight.waterDtos;
that._recordPlayersWeightSource.recordPlayersWeight(this.gridData);
},
err => {
}
);
}
that.window = $("#TigerwatersPopup");
that.window.kendoWindow({
width: "60%",
title: false,
visible: false,
resizable: false,
actions: [],
draggable: false,
modal: true,
open: function() {
$("html, body").css("overflow", "hidden");
that.isVisible = true;
$('.tubing').html(health.title);