.js
"rpsCommonWord": [
{
"addressWeightPct": "60",
"charSubstituteWeightPct": "15",
"nameWeightPct": "40",
"oIdNumber": "21",
"shortWordMinLthWeightPct": "100",
"substituteWeightPct": "5",
"wordName": "Word 3"
},
{
"addressWeightPct": "60",
"charSubstituteWeightPct": "15",
"nameWeightPct": "40",
"oIdNumber": "21",
"shortWordMinLthWeightPct": "100",
"substituteWeightPct": "5",
"wordName": "abc 3"
},
{
"addressWeightPct": "60",
"charSubstituteWeightPct": "15",
"nameWeightPct": "50",
"oIdNumber": "21",
"shortWordMinLthWeightPct": "100",
"substituteWeightPct": `enter code here`"5",
"wordName": "Wordefd 3"
}
];
$scope.onClickGo = function() {
//
};
.html
<strong><font color="#660099" face="Arial" size="1">wordName : </font></strong>
<strong><font color="#660099" face="Arial" size="1"><input name="wordName" type="text" value=""></font></strong>
<strong><font color="#660099" face="Arial" size="1">nameWeightpct : </font></strong>
<strong><font color="#660099" face="Arial" size="1"><input name="nameWeightpct" type="text" value=""></font></strong>
In my current task, I am looking to filter records where the "wordName" is either "Word" or "WO" and the "nameWeightpct" is equal to 40. This needs to be done in the frontend without relying on backend services. The approach should be similar to a "Like%" query in MySQL but executed solely in the frontend by filtering an array of records that match or closely resemble the entered values.