This is my process for receiving input: extracting data from an sql table, passing it through php slim, integrating it into angularjs, and displaying it on a website.
I am looking to retrieve a variable in javascript that has been passed from php slim to angular.
Currently, I have the following code inside $( document ).ready(function() {:
var $element = $('div[ng-show="game"]');
var scope = angular.element($element).scope();
console.log(scope);
When executed, this code logs the scope object in the console.
Any suggestions on how to accomplish this task?