We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47e1022 commit 101387aCopy full SHA for 101387a
ng-profile-scope-method.js
@@ -8,12 +8,12 @@
8
where $scope could be determined from element 'my-selector'
9
*/
10
(function profileScopeMethod() {
11
- var selector = 'find';
+ var selector = '#find';
12
var methodName = 'find';
13
var name = selector + ':' + methodName;
14
15
/* global angular */
16
- var el = angular.element(document.getElementById(selector));
+ var el = angular.element(document.querySelector(selector));
17
var scope = el.scope() || el.isolateScope();
18
console.assert(scope, 'cannot find scope from ' + name);
19
0 commit comments