0

enter image description hereUnable Eigenschaft 'Länge' von undefined oder null Bezug auf ctrl.getplaceholder in ui-select.js

Hallo, ich bin die Umsetzung ui-Auswahl Winkel Richtlinie für mehr Autos komplett zu erhalten. mit Winkel Version 1.2.18 es workes in Ordnung, aber wenn ich mit Winkel 1.5.5 verwendet, um einen Fehler beim Abruf wie: Unable Eigenschaft ‚Länge‘ von undefined oder null Bezug auf ctrl.getplaceholder

Mein HTML-Code ist zu bekommen:

<ui-select multiple tagging="tagTransform" tagging-tokens="SPACE|,|/" ng-model="demo.selectedPeople" style="width: 800px;"> 
    <ui-select-match placeholder="Select person...">{{$item.name}}</ui-select-match> 
    <ui-select-choices repeat="person in people | propsFilter: {name: $select.search}"> 
     <div ng-if="person.isTag" ng-bind-html="person.name + ' ' + $select.taggingLabel | highlight: $select.search"></div> 
     <div ng-if="!person.isTag" ng-bind-html="person.name| highlight: $select.search"></div> 

    </ui-select-choices> 
    </ui-select> 

Mein Controller-Code ist:

lampiApp.controller('DemoCtrl', function ($scope, $http) { 


$scope.tagTransform = function (newTag) { 
    var item = { 
     name: newTag, 

    }; 

    return item; 
}; 

$scope.people=[]; 
var str = "January,February,March,April,May,June,July,August,September,October singh"; 
var splittedString = str.split(','); 
var arr = []; 
splittedString.forEach(function (v) { 
    arr.push({ name: v }); 
}); 

$scope.people = arr; 

}); 
+0

i thi nk der Fehler ist bei Platzhalter Wert Abrufen von Teil $ item.name .. verwenden $ select.selected.value statt –

+0

es funktioniert nicht –

+0

entfernen mehrere Attribut .. auch ich weiß nicht, was genau Sie stehen vor –

Antwort

0
1.This was the Error that is related to angular version i figure out the solution by myself , see it at this Plnkr 
2.http://plnkr.co/edit/230zLWeyACfReVaPZ0LM?p=preview