Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$compile error on ngMaterial #63

Open
marchrius opened this issue Jul 19, 2016 · 2 comments
Open

$compile error on ngMaterial #63

marchrius opened this issue Jul 19, 2016 · 2 comments
Labels

Comments

@marchrius
Copy link

marchrius commented Jul 19, 2016

Angularjs version 1.5.7
Bootstrap version 1.3.3

Getting this error using availableParams as (ctrl is valid)

Error: $compile:ctreq
Missing Required Controller
Controller 'ngModel', required by directive 'key', can't be found

ctrl.availableSearchParams = [
    { key: "name", name: "Name", placeholder: "Name..." },
    { key: "city", name: "City", placeholder: "City...", restrictToSuggestedValues: true, suggestedValues: ['Berlin', 'London', 'Paris'] },
    { key: "country", name: "Country", placeholder: "Country..." },
    { key: "emailAddress", name: "E-Mail", placeholder: "E-Mail...", allowMultiple: true },
    { key: "job", name: "Job", placeholder: "Job..." }
];

instead of

ctrl.availableSearchParams = [];

that works but only with "query" parameter.

I'm unable to reproduce it on jsfiddle or plunkr.

@marchrius
Copy link
Author

Hi, I'm at a good point in this situation.

The attributes data-key is in conflict with one of my other plug-ins (datarangepicker I think).
If I change the template data-key attribute to data-nit-key (absolutely random but with reference to your nit- prefix) it works as normal.

I'll inspect more accurate when I get time.

@dnauck
Copy link
Owner

dnauck commented Nov 9, 2017

Hi @marchrius,

the data-* stuff was a PullRequest to allow better testing of the UI. It is not required to have these attributes. Simply remove them from your template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants