angular-advanced-searchbox icon indicating copy to clipboard operation
angular-advanced-searchbox copied to clipboard

Parameter issue

Open Sfiora opened this issue 9 years ago • 3 comments

My code is:

html: <nit-advanced-searchbox ng-model="searchParams" parameters="availableSearchParams" placeholder="Cerca..." parameters-label="suggerimento parametri"> </nit-advanced-searchbox>

js: $scope.searchParams = {};

$scope.availableSearchParams = [ { key: "id", name: "ID", placeholder: "ID..." }, { key: "acquisto", name: "Acquistato il", placeholder: "Acquistato il..." }, { key: "nome", name: "Nome cliente", placeholder: "Nome cliente..." }, { key: "importo", name: "Importo", placeholder: "Importo..." }, { key: "quantita", name: "Quantità", placeholder: "Quantità..." }, { key: "spedizione", name: "Spedizione", placeholder: "Spedizione..." }, { key: "stato", name: "Stato", placeholder: "Stato..." } ];

but it return me this error: https://docs.angularjs.org/error/$compile/ctreq?p0=ngModel&p1=key

it seems to need something else.

Sfiora avatar Jun 30 '16 14:06 Sfiora

what does your controller look like? can you share your code or a jsfiddle/plunk showing the problem.

johnmccabe avatar Jul 07 '16 18:07 johnmccabe

Your config and directive look ok - heres an example with your data - http://plnkr.co/edit/qXmyk69gAAzaMkPjWYxk?p=preview

johnmccabe avatar Jul 07 '16 18:07 johnmccabe

Looks like this is related to #63

dnauck avatar Nov 09 '17 16:11 dnauck