Skip to content
This repository was archived by the owner on Jan 21, 2019. It is now read-only.
This repository was archived by the owner on Jan 21, 2019. It is now read-only.

Async module registration may init components multiple times #2

@nkbt

Description

@nkbt

Angular has internal cache of initialized components. If I include one module as dependency in several modules (one sync, one async) it gives an exception.
The reason - <match> directive was initialized by angular and then by app.register again.

Error: [$compile:multidir] Multiple directives [match, match] asking for new/isolated scope on: 

<input name="confirm" type="password"
  ng-model="password.data.user.password_confirmation"
  placeholder="Confirm Password"
  match="password.data.user.password"
  class="ng-pristine ng-untouched ng-valid”>

I see 2 possible ways. Either find find the way to access that internal Angular cache, so I will not init same directive more then once. Or always use my own app.register to take full control over caching.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions