As I selected a specific data row in ng-grid, it should fill in its data into data form
As I click clear button, it should clear the form data and selected item in ng-grid. But it does not work.
Here is the code snippet. I had set the the length of selectedItem to zero, but in vain.
In addition to set selectedItems' length to zero, I also need to set selectAll to false.
Here is the revised code snippet:
Then it works now.