last day (14 days later) » 

5:45 AM
2
A: AngularJS class ng-scope is not being added

AngularHarshCheck if the following lines of code are added in your javascript. This usually removes debug info i.e. Ng-scope. This is usually added to improve performance in production code. $compileprovider.debuginfoenabled(false)

 
I have looked through my project and do not see that line, is there a place I can find this property?
 
It is in "app.config". Like below. app.config(['$compileProvider', function ($compileProvider) { // disable debug info $compileProvider.debugInfoEnabled(false); }]);
Try giving true to debugInfoEnabled. See if ng-scope comes back. app.config(['$compileProvider', function ($compileProvider) { // disable debug info $compileProvider.debugInfoEnabled(true); }]);
 
I tried this code and was able to make ng-binding turn off and on, but ng-scope has not come up. .config(function ($stateProvider, $urlRouterProvider, $compileProvider) { $compileProvider.debugInfoEnabled(false); $stateProvider }) NOTE: I tried both true & false .config(function ($stateProvider, $urlRouterProvider, $compileProvider) { $compileProvider.debugInfoEnabled(true); $stateProvider })
I updated my original post to show the config options I tried
 
Try this in your console. Lets check whether scoped element is available or not. angular.element($0).scope()
 
angular.element($0).scope()
ChildScope {$$childTail: ChildScope, $$childHead: ChildScope, $$nextSibling: null, $$watchers: Array[1], $$listeners: Object…}$$ChildScope: function ChildScope() {$$childHead: ChildScope$$childTail: ChildScope$$listenerCount: Object$$listeners: Object$$nextSibling: null$$prevSibling: ChildScope$$watchers: Array[1]0: Objectlength: 1__proto__: Array[0]$id: 9$parent: ChildScopenames: Array[3]__proto__: ChildScope
 
5:47 AM
angular.element($0).scope().$id
try this one too
 
Here is the www folder
angular.element($0).scope().$id returns 9
 
that means your ng-scope is there...otherwise no $id would come..
I am in office..dropbox, drives, etc will not work.
That is a really strange issue. Most often ng-scopes are removed by debuginfo(false). But your issues seems to be originating from some supporting app or some other plugin. Or may be there is some code that you have not seen as of yet..
 
hmmm, thanks so far for your answers, I have put the code up in a zip so hopefully someone will see an answer. Thanks Mate
 
No problem mate.
 

last day (14 days later) »