I want to use the $scope to set if an attribute should be used or not in angular. Here is my scope:
fields:
[
{
label: 'First Name',
name: 'firstname',
key: 'entry.326845034',
type: 'text',
required: true
}
]
it's the required attribute I want to set. I'm imagining something like {{if fields.required == true | required}}, but I can''t find any documentation on it.