AngularJs - Filtering out duplicates in select control -


I have a selected list of Excel types, each one has a property with a front axle or a type of rear axle, Can not filter double words of 'front' and 'rear'.

Enter image details here

Update:

HTML:

  & lt; Ng-model = "type axleType type type" ng-options = "unique type for type" & gt;   

Controller:

  $ scope.axleTypes = API.GetAxleTypes (); "Full-floating banjo housing", "", "type": "front", "id": 1}, {"$ id": "I id, telescopic type shock absorbers": "", "description" Type ":" rear "," id ": 2}, {" $ id ":" 3 "," description ":" something else "," type ":" rear "," id ": 2}, {" $ Id ":" 4 "," description ":" I beam, binocular type shock absorber "," type ":" front "," id ": 4}]; // This works $ scope.uniqueTypes = _.uniq (_.pluck ($ scope.fixedAxleTypes, 'type')); // it is not //$scope.uniqueTypes = _.uniq (_. Incision ($ scope.axleTypes, 'type')); // it is not // paste //$scope.uniqueTypes = _.uniq (_. (API GateXle Type (), 'type'));   

I am completely confused and yes, the API works, I chrome> Network & gt; Response window

The error you saw in your edit, I'm sure the reason is That's what I have described in my comment, which is the use of the expression (axle type) for the reference, where that expression can not be evaluated. Since you are not using the expression in the filter implementation, so you can completely leave it, I believe.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -