I am fairly new to using JavaScript in relation to Angular 2.0. I have about 2 years of experience with Java, so I'm familiar with programming (in general).
In my application, I have a JSON payload whose data I would like to access. Normally, in Java, I might make a map to capture said data.
My question: How does one capture data in Angular (2.0) to be used within the scope of a controller/service?
Sample Data:
"impairments":[
{
"type":"SUCKOUT",
"lowBin":132000000,
"highBin":210000000,
"severity":57
}
In which I am trying to use the data for "type"
Thanks so much!