I am brand new to AngularJS and while doing the Codecademy course I got stuck. I was trying to repeat a directive using the following syntax.
<div class="card" ng-repeat="app in apps">
<app-info info="{{ app }}"></app-info>
</div>
I played around a bit and figured out I needed to remove the curly braces.
<div class="card" ng-repeat="app in apps">
<app-info info="app"></app-info>
</div>
But if I was not using a directive I think I would access the information like this. AngularJS documentation.
<div class="card" ng-repeat="app in apps">
{{ app }}
</div>
Could someone explain why I do not need the curly braces to help me better understand AungularJS. Thanks!