Custom directives


#1

I have a custom directive which takes this parameter info="move" (the name of some app).
My code repeates as you can see below and the only difference between them is the title of the app after info=.
I have created an array in the MainController with objects in it (the apps' info).
The objects inside the array $scope.app have a property called title. So to avoid this repetition I was given the instruction to use ng-repeat built-in directive.




    <div class="card">
      <app-info info="shutterbugg"></app-info>
      <install-app></install-app>
    </div>

    <div class="card">
      <app-info info="gameboard"></app-info>  
      <install-app></install-app>
    </div>

My code is this below but it wouldn't work... Any ideas what's wrong with that?


#3

Please post your directive's JavaScript code.


#4

I found the mistake: I wasn't declaring the filter "date" properly, I missed the colon. Thanks anyway.