I'm trying to set a property using jquery i'm new to doing this so i could well be making a very simple mistake or this might not be appropriate for what im trying to achieve
Here is my query where I try to set a variable - click here
here is how I try to pass the access_token
from the response to a property - Click here
here is the error i get when i debug the code 'ncaught TypeError: Cannot read property 'ajax' of undefined'
- Click here
can anyone give me some advice on how i can overcome the issue
i have found the solution to my problem
$.ajax(settings).done(function (response) {
console.log(response);
ID = response['access_token'];
console.log(ID)
});
// if hard coded the token
private ACCESS_TOKEN : string = ID;