Skip to content

$element not injected as a local #1657

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

Closed
Nate-Wilkins opened this issue Dec 24, 2014 · 0 comments
Closed

$element not injected as a local #1657

Nate-Wilkins opened this issue Dec 24, 2014 · 0 comments

Comments

@Nate-Wilkins
Copy link
Contributor

I'm really confused as to why ui-router controllers aren't allowed access to $element? Is this by design?

Plunker
Related Code

In the end I need to end up accessing a directive controller from my controller like so:

app.controller('MyController', function ($element) {
    var cool = $element.inheritedData('$coolController');
});
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

2 participants