I am trying to update the sections of the stores in my user. To do this I think that I need the index of the array. I can get it in html, but it is doing it in angular controller.
// controller // How do I get indexOf $ scope.global.user.store [?] Instead of HTML? $ Scope $ Watch ('radio.model', function () {$ scope.filteredArray = filterFilter ($ scope.global.user.store, {})}}, true);
I can select a radio button and it will tell me in an array in the index store
Update:
& lt; Li ng-repeat = "store in global.user.store" & gt; & Lt; Label ng-model = "radio.model" btn-radio = "store" & gt; {{Store.name}} & lt; / Labels & gt; & Lt; / Li & gt;
So the idea is that this is a section in the store. So I look at the store object that has the name property and block property I and I want to update the store object with different sections.
Comments
Post a Comment