Hello, I'm a bit lost with this since I don't control Angular Material .
I have created a table in which all the results that I currently have in the JSON appear and I have to make a function in which I make a filter to show the last X records, in which X is the number that I introduce to show.
HTML
<list-account-movements layout="row" flex="100" filtro-selecionado="vm.filterSelected" filter-value="vm.Ultimos registros" layout-wrap></list-account-movements>
This is the form field
<input type="number" class="input2 inputPresonalizado2" ng-model="vm.lastMovement" maxlength="3"/>
and in the JS I have introduced the binding in the controller
bindings: {
filtroSelecionado: '<',
filterValue: '<'
}
and I would like to know if when creating the Angular function as I collect the input data to pass the corresponding variable to show the last selected records. For example, if I have 25 records and I set to show the last 5 records, collect the value to perform the corresponding search to show them.
Thank you very much, greetings
What I do is have an object in the controller and assign the value of the input to the object.
and in the html you do this...
With this, when wanting to obtain the value of the input in the controller, in this case we show it in the console, you just do the following....