Code Editor
Web Browser
Learn
Directives

Directives I

Here's an AngularJS app for a mobile app store:

  • In the controller MainController.js, there are three objects $scope.move, $scope.shutterbugg, and $scope.gameboard that each contain info about an app, like its title and price.
  • In the view index.html in the .main section, each app is displayed inside a .card div.

But looking at the view, the same code is written over and over again to display each app. This is repetitive and error-prone. Let's fix this.

Report a Bug
If you see a bug or any other issue with this page, please report it here.