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
TypeError: Cannot set property '$$templates' of undefined #55
Comments
Hi, Which version of angular-breadcrumb do you use please ? |
I have the same issue. I'm using angularjs 1.3.4, angular-ui-router 0.2.13 and angular-breadcrumb 0.3.2 |
Okay, this is a serious "security" problem. your code isn't compatible with "use strict" behavior. unfortunately Grunt does not bug you, when you run the jshint task - even if you set "use strict". |
Thanks for these enlightenments, I'll investigate that. |
Getting the same issue when I try to run after I combine and minify all of my css/js. Using angularjs 1.3.2 and angular-breadcrumb 0.3.2. Running locally works just fine. |
It's the same problem anyway. Take a look inside your minified is an search
|
I tested I think I blindly fixed the bug by defining @ebugfix, @dmglab or @mgoldsborough please can you checkout the Thanks for your help ! |
Yes, that made it. In strict mode, every variable needs to be declared before using it. I recommend you to read how strict mode works and what it does. Using strict mode in your javascript libraries provides many security benefits for code and client. This article has a good overview to the "use strict" behavior. Greetings! |
Merge in master and released in 0.3.3 |
When I try to access an state
TypeError: Cannot set property '$$templates' of undefined
at BreadcrumbDirective (http://localhost:9098/scripts/core/utils/breadcrumbs.js:179:20)
at Object.invoke (http://localhost:9098/bower_components/angular/angular.js:3966:17)
at http://localhost:9098/bower_components/angular/angular.js:5690:43
at forEach (http://localhost:9098/bower_components/angular/angular.js:325:18)
at Object. (http://localhost:9098/bower_components/angular/angular.js:5688:13)
at Object.invoke (http://localhost:9098/bower_components/angular/angular.js:3966:17)
at http://localhost:9098/bower_components/angular/angular.js:3808:37
at Object.getService as get
at addDirective (http://localhost:9098/bower_components/angular/angular.js:6763:51)
at collectDirectives (http://localhost:9098/bower_components/angular/angular.js:6190:15)
why????
The text was updated successfully, but these errors were encountered: