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

cant use new Directive on ng-input #11

Open
pratik1990 opened this issue Sep 12, 2017 · 0 comments
Open

cant use new Directive on ng-input #11

pratik1990 opened this issue Sep 12, 2017 · 0 comments

Comments

@pratik1990
Copy link

i got error when i try to use new directive.
i was using google auto complite address api and i had created new Directive for it. when i use it i got error

Error: $compile:multidir
Multiple Directive Resource Contention

Multiple directives [ngAutocomplete (module: DineIn), ngInput (module: ngInput)] asking for new/isolated scope on: <span class="input input--{{ theme }}" theme="hoshi" label="Full Delivery Address eg. 29 Mazowe Street, Harare, Zimbabwe" ng-model="signUp.customer.postcode" ng-autocomplete="" details="googleAddress">

as Per angular Document here is ans for this :

Description
This error occurs when multiple directives are applied to the same DOM element, and processing them would result in a collision or an unsupported configuration.

To resolve this issue remove one of the directives which is causing the collision.

Example scenarios of multiple incompatible directives applied to the same element include:

Multiple directives requesting isolated scope.
Multiple directives publishing a controller under the same name.
Multiple directives declared with the transclusion option.
Multiple directives attempting to define a template or templateURL.

But everything is so important that i cant remove any directive. help me asap

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

No branches or pull requests

1 participant