-
Notifications
You must be signed in to change notification settings - Fork 824
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
Error with angular when trying to use with latest version(0.9.3) #213
Comments
Could you create a fiddle (or pen or bin or whatever) to demonstrate the issue? |
+1 I simply added headroom above the tab bar: https://plnkr.co/edit/b6panE?p=info |
Are there any updates on this issue? |
Have no idea if this is helpful, or not but I just hacked this up in the last 15 mins. I had problems after minification, but was getting the same error you are seeing. Don't know if this will work for you.
|
Any updates regarding this issue? |
+1 |
This happens because window.Headroom is undefined. Make sure you've loaded |
I'm using CommonJS modules (Webpack 2) and I had this same issue. When CommonJS/AMD is used, the In rules: [
{
test: require.resolve('headroom.js'),
use: 'imports-loader?this=>window,define=>false,exports=>false'
}
] In import 'headroom.js'
import 'headroom.js/dist/angular.headroom'
// ...
angular.module('MyApp', ['headroom']) |
@rwoody any idea how this would look in Webpack 1? I seem to be having the same issue but cannot figure it out! |
update: fixed it for anyone who may need this code:
|
Closing in favour of #333, which will look at all angular issues |
AngularJS throws an error when latest files are included:
Error: $injector:undef
Undefined Value
Provider 'HeadroomService' must return a value from $get factory method.
The text was updated successfully, but these errors were encountered: