AngularJS tests

AngularJS tests

by asartem

HTML

<div ng-controller = "cardsListController">    
    Name: {{name}}
<div id="cardsList">
        <div ng-repeat="card in cards">
            Card  {{card.id}}
        </div>
    </div>
</div>

JavaScript

var myApp = angular.module('myApp',[]);

var cardsListController = function($scope) {
    $scope.cards = [{ id: 1 }, { id: 2 }];
    $scope.name = "Artem"
};