Good afternoon everyone, I am a beginner in programming, I am studying a lot but it is something that from day to night, it is not possible to capture everything rsrs .. and they put me to do some things of operation that for me is already very rsrs, where I need that when clicking in an icon (sinoAmarelo) filter from a list of inputs only those that have minimum stock registered and when I click on another icon (sinoCinza) filter from the same list of inputs only those that do not have minimum stock registered.
A sample image in it is the list of inputs and each block contains a green circle with a bell inside that indicates that that input has minimum stock registered that is where I need to filter and show the block that has it , and show the blocks that have the bell disabled in gray:
=============
HTML:<aclass="filtroAviso clicavel" ng-click="ctrl.filtraAvisos($event, true)" id="comAviso"></a>
js:
$scope.filtraAvisos = function(e, item) {
$("#" + e.target.id).toggleClass("ativarFiltroAviso");
if (item) {
}
}
I do not know if it was clear ... but my limitation still .. I can not reach this goal that I described above .. If someone can give me a help somewhere else and need a contact just let me know .. but I am trying a few days but still without success this angular integration, js and other things is still complex for me that I am initiating but I am in the fight .. Great hug to all!