Being a newbie in AngularJS and JSON, I have the following JSON-code:
{
key: 'EI',
value: 'Eingepasst',
rate: Settings.get('partnerRate'),
variants:
[
{ key: 'E0', value: 'Regulär', multiplier: 1, rate: Settings.get('partnerRate') }
]
},
However it should only be "used" in case a specific variable in AngularJS-code (to be detailed $.scope.something) gets a specific value.
How can I add such an if-clause herein (if possible)?