Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(loader): allow 'ng' module to be extended with filters/directives/etc #7880

Closed
wants to merge 1 commit into from

Conversation

caitp
Copy link
Contributor

@caitp caitp commented Jun 17, 2014

Due to a regression in c0b4e2d, it is no longer possible to add new controllers, directives, filters, or animations to the ng module. This is becuase config blocks are always evaluated after regular invoke blocks, and the registration of these types depend on angular's config blocks to have been run.

This solution simply ensures that ng's config blocks are run before its invoke blocks are run.

Closes #7709

…/etc

Due to a regression in c0b4e2d, it is no longer possible to add new controllers, directives,
filters, or animations to the `ng` module. This is becuase `config` blocks are always
evaluated after regular invoke blocks, and the registration of these types depend on angular's
config blocks to have been run.

This solution simply ensures that `ng`'s config blocks are run before its invoke blocks are run.

Closes angular#7709
@caitp caitp added cla: yes and removed cla: no labels Jun 17, 2014
@caitp
Copy link
Contributor Author

caitp commented Jun 17, 2014

So like I said in the issue, I'm not sure this was ever meant to be a supported use case... no guarantees on this landing >_-

@btford
Copy link
Contributor

btford commented Jun 20, 2014

I think this is possibly useful for Batarang that may want to intercept + add components to the ng module. I don't think any of these tools currently behave like this. I'm also not clear why #7709 would want to register filters like this. :/

I think it might be worth mentioning that you should not do this in https://github.com/angular/angular-component-spec

@IgorMinar
Copy link
Contributor

we should not do this. reopening the ng module is a hack.

let's close this as won't fix and update the changelog with a note that this no longer works.

@btford
Copy link
Contributor

btford commented Jun 24, 2014

👍

@IgorMinar IgorMinar closed this Jun 24, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't upgrade from beta.7 to beta.8-10
3 participants