Closed ajayreddy56 closed 7 years ago
@ajayreddy56 ,
Perhaps you can try to pre-define $scope.outputUserFriends as an empty array?
done with that also. @isteven
@ajayreddy56 ,
If it doesn't work, then I guess I'll need you to replicate this in Plunker or JsFiddler so I can have a look.
@isteven
i have a scenario like this,have drop down contains x,y and z. when click on z your selection will come and i selected one item there and come back to x ,and i navigated to z click on that same again showing here how to clear it.
used below code no use
angular.forEach( $scope.userFriends, function( value, key ) {
value['ticked'] = false;
});
@ajayreddy56 ,
Please help to replicate your problem in Plunker or JsFiddler (or any other JS collaboration tools) so I can have a look.
in controller:
Here outputUserFriends is showing the length as undefined.