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

refactor: move component helper to the $compileProvider #13692

Closed
wants to merge 1 commit into from

Conversation

Narretz
Copy link
Contributor

@Narretz Narretz commented Jan 6, 2016

The Module.component() now delegates to $compileProvider.component().
This has the following benefits:

  • when using only the loader, we are not accessing out of scope variables / functions
  • components can be registered via $compileProvider
  • docs are a bit easier to find

/cc @petebacondarwin @shahata

@Narretz Narretz added this to the 1.5.x - migration-facilitation milestone Jan 6, 2016
The Module.component() now delegates to $compileProvider.component().
This has the following benefits:

- when using only the loader, we are not accessing out of scope variables / functions
- components can be registered via $compileProvider
- docs are a bit easier to find
@Narretz Narretz modified the milestones: 1.5.0-rc.1, 1.5.x - migration-facilitation Jan 7, 2016
});
});

it('should register a directive via $compileProvider.component()', function() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test is also new

@gkalpak
Copy link
Member

gkalpak commented Jan 8, 2016

A couple of minor nitpicks, but LGTM otherwise.

This will (obviously) affect the fix for angular/batarang#275.

@petebacondarwin
Copy link
Contributor

LGTM - merging with tweaks suggested by @gkalpak and some minor docs changes

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.

4 participants