SyntaxFix
Write A Post
Hire A Developer
Questions
You can use $timeout to prevent the error.
$timeout
$timeout(function () { var scope = angular.element($("#myController")).scope(); scope.myMethod(); scope.$scope(); }, 1);